I want to create and write csv file in ruby on rails. I'm using ruby 1.9.2 version. Most of the sites are recommended Fastercsv. But apart from that how csv is used to create and write csv files in ruby
3 Answers
FasterCSV is no longer needed in 1.9.2 - use ruby's built-in CSV class. The documentation has plenty of examples to get you started:
Comments
hope this will be helpful
http://satishonrails.wordpress.com/2007/06/28/how-to-generate-csv-files-in-rails/
https://github.com/dasil003/csv_builder
http://oldwiki.rubyonrails.org/rails/pages/HowtoExportDataAsCSV
1 Comment
mylescarrick
As Thilo has highlighted below, the CSV coolness is now baked into ruby. Although the syntax from FasterCSV is largely preserved in the CSV module these references are unlikely to be particularly helpful.