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.

John

On 15 December 2010 10:25, John F. [email protected] wrote:

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.

Colin

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

John

2010/12/15 Colin L. [email protected]