In my application I need to read a csv file and fill in rows in jqGrid.
Which gem is the best to read a csv file?
I found csv-mapper and fastercsv.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The answer depends on the version of Ruby you’re on. I’ve been pretty happy with fastercsv on Ruby 1.8. And now on Ruby 1.9, fastercsv has been adopted into the stdlib, so no need to pull a gem, just
require "CSV".