Displaying 1 result from an estimated 1 matches for "array_csv".
2006 May 22
2
Problem with send_data and csv file produced
...opened the csv file, something is
wrong...
every statement got a "......" 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.re...