Ruby on Rails Wednesday, December 15, 2010

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 Law <clanlaw@googlemail.com>
On 15 December 2010 10:25, John Fletcher <fletchgqc@gmail.com> 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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment