Ruby on Rails #89 export to CSV (different approaches)

28/07/2022 (over 1 year ago)
·

Explore different ways of exporting data from a Ruby on Rails database to CSV.

First we will create flexible custom templates for generating CSV data in a specific way we want to display it.

Next, will create a generator that downloads a whole database table as CSV.

Each approach is good, depending on your specific situation.

Episode source code: https://github.com/corsego/89-csv-export/commit/608fa8f9a9960f14b5c7619c8ccfb3a95b94da35
Text version: https://blog.corsego.com/export-csv-from-rails-database


0
Sign in to join the conversation