Generate csv from ruby object


hi all,

is there any method/way to generate a csv from an object directly? e.g.
@object.to_csv that will create a csv file with whatever data that
object holds?

the object that i have is a parsed xml response like @report = parsed
xml. but i’m not able to send it to csv as number of
columns,rows,headings are not fixed. this object holds report data.
thanks in advance.



Have you looked a Comma, ?

Twitter: @eifion


Ruports is pretty slick:

On Mar 19, 1:55 pm, Dhaval P. <rails-mailing-l…@andreas-