Convert data as CSV problem

Check out this plugin:

http://svn.integralserver.com/plugins/to_csv/

It does all the hard work for you.

Eric

Sure. Just do the same things this plugin does. I don't understand why you cannot install the plugin? Rails plugins are installed with the project so if you can edit the project files you can install the plugin.

Eric

Here's a simple example of using the CSV module, I'm fairly sure this comes with the standard distribution of Ruby:

require 'csv' data = ""

CSV::Writer.generate(data) { |csv|   csv << ['data_item1,'data_item2'] }

File.open(OUTPUT_FILENAME, 'w') { |file| file << data }

Here's a simple example of using the CSV module, I'm fairly sure this comes with the standard distribution of Ruby:

require 'csv' data = ""

CSV::Writer.generate(data) { |csv|   csv << ['data_item1,'data_item2'] }

File.open(OUTPUT_FILENAME, 'w') { |file| file << data }

I checked and this is part of the standard library.

http://www.ruby-doc.org/stdlib/libdoc/csv/rdoc/index.html