Ruby on Rails #88 Import CSV and parse it within a Rails app
25/07/2022 (almost 2 years ago)
In this episode we will import a custom CSV into a Rails app.
We will also map columns from the CSV, so that they fit our database.
To conclude, we will extract the business logic from the Controller to a Service.
Episode Source Code: https://github.com/corsego/88-csv-import/commit/6a6a43687ca5c967e32f3f1772d70f4d480a51ea
Text version: https://blog.corsego.com/import-csv-to-rails-database
Ruby CSV class: https://ruby-doc.org/stdlib-2.6.1/libdoc/csv/rdoc/CSV.html
0
Sign in to join the conversation
Recommended based on what you are watching now
07:28
Free Ruby on Rails #76 Fontawesome with Importmaps in Rails 7
24/04/2022 (about 2 years ago)
18:15
Free Tailwind on Rails #139 Advanced Navbar Dropdown Menu
10/08/2023 (9 months ago)
01:29
Free A whole train of Ruby developers on RAILS! Literally!
22/09/2023 (8 months ago)
RailsWorld
1
11:12
Free Ruby on Rails #28 Action Mailer: Gmail SMTP - send emails in production for free
20/05/2021 (almost 3 years ago)