search for: return_head

Displaying 2 results from an estimated 2 matches for "return_head".

2009 Jun 17
12
FasterCVS and Rails
...uoted field on line 1." "/ruby/lib/ruby/gems/1.8/gems/fastercsv-1.2.3/lib/faster_csv.rb:1592:in `shift''" I''ve tested the same code outside of the Rails application an it works fine. Can anyone help me? Here is the code: csv_options = { :headers => false, :return_headers => false, :skip_blanks => false } csv_file_name = File.dirname(__FILE__) + "/../../Files.TXT" data = "" FasterCSV.foreach(csv_file_name, csv_options) do |row| data << row.to_s + "<br>" end And the first two lines in the file: "20.1"...
2009 May 21
0
FasterCSV won't accept :headers option
When I pass :headers => true to FasterCSV.foreach it complains. Without it it works. Am I doing something wrong? FasterCSV.foreach(file, {:row_sep => :auto, :col_sep => "\t", :quote_char => "~", :return_headers => false, :headers => true}) do |row| -- Posted via http://www.ruby-forum.com/.