comma gem

I’m trying to use the comma gem to output data as CSV. I follow the doco but the CSV file I receive contains only a few characters, which look like the to_s of an object.

Could it be related to the fact I’m using Rails 3? If someone knows what’s wrong or has a recommendation of a better way to export data to Excel please let me know.


If you are using ruby 1.9 then you can use the built in CSV capability
to generate csv file.


Yeah thanks, comma provides a few nice conveniences. But maybe I’ll just go the manual way, it’s not many lines.