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