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 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 15 December 2010 10:25, John Fletcher <fletchgqc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>> On 15 December 2010 10:25, John Fletcher <fletchgqc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.