On 27 October 2015 at 06:37, honey ruby <[email protected]> wrote:
> 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.

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

-- 
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 [email protected].
To post to this group, send email to [email protected].
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 via email to