Knowledge
  • ⚡️ Knowledge
  • Talks I like
  • Thinking
  • Unix
  • CSS
    • CSS
  • Git
    • git
  • business
    • concepts
  • databases
    • PostgreSQL
  • dev-ops
    • Docker
    • heroku
  • javascript
    • javascript
    • Jest
    • Readme
      • General
      • Libraries
        • React_DnD
  • npm
    • npm cheatsheet
  • people
    • Active Listening
  • productivity
    • focus
    • reviews
  • reading-log
    • 12 Rules for Life
    • nonfiction
  • ruby-on-rails
    • Active Storage
    • bundler
    • file-io
    • Migrations
    • patterns
    • rake-tasks
    • views
  • stoicism
    • Notes
  • food-drink
    • coffee
      • Coffee Beans
  • tools
    • macOS
      • Things
    • services
      • Trello
Powered by GitBook
On this page
  • Table of Contents
  • Importing CSV Files
  1. ruby-on-rails

file-io

PreviousbundlerNextMigrations

Last updated 6 years ago

Things regarding the input and output in a rials application.

Table of Contents

Importing CSV Files

Rails has a lot of support built on for handling CSV (both, in- and output), have a look at the .

While importing CSV Files, the most memory-efficient method is to use CSV.foreach(), which reads the file line per line (see for more information about the performance of importing CSV files).

CSV Class
this article
Importing CSV Files