can anyone explain me how to create csv upload for data? i am new to ror and learning ror by examples.
on 2011-09-08 15:05
on 2011-09-08 15:06
need help for creating csv upload for data
on 2012-06-18 21:09
It can be done simply, using the Array "join" method, but better is to use the CSV module, since it will take care of quotes (for example around strings which contain commas, which could cause columns to become corrupted otherwise). Link is here (but not working presently): ruby-doc.org/stdlib-1.9.2/libdoc/csv/rdoc/CSV.html Dan