Showing data in one cell of csv but in line

13 views
Skip to first unread message

honey ruby

unread,
Oct 27, 2015, 2:37:27 AM10/27/15
to Ruby on Rails: Talk
Hi all,

I have to show data in csv in one cell but in new line.
eg:   2015    xyz
        2014   abc

How can I show this way using csv in rails. am using faster csv.

Thanks

Colin Law

unread,
Oct 27, 2015, 4:45:17 AM10/27/15
to Ruby on Rails: Talk
It depends what you want to do with the csv. It may be that
generating something like
"a","b","2015 xyz
2014 abc","c"
might work, but it will depend on whether the s/w you are feeding the
csv into will accept that format.

You can experiment by generating some files by hand to see if it is ok.

Colin

honey ruby

unread,
Oct 28, 2015, 2:51:49 AM10/28/15
to Ruby on Rails: Talk
thank you. Let me check.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv9CrR_uQ6reRS%2BskLWLLcHMLadP%2BCon14ekuRJbvnpaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages