search for: csv_record

Displaying 1 result from an estimated 1 matches for "csv_record".

2006 May 22
2
Problem with send_data and csv file produced
...inverted commas!!! omg!!! how to get rid of them!! the data is correct just the why come there is the inverted commas!! any pro in RoR pls!! help me!! here is a snippet of the code ... report = String.new array_csv = Array.new CSV::Writer.generate(report, '','') do |csv| @csv_record.each do |record| record.attributes.each { |key,value| array_csv.push "#{value}"} csv << [array_csv.join('','')] array_csv.clear end end report.rewind send_data(report.read, :type => ''text/csv; charset=iso-88...