Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread
Message: 58457
BY: D C (dcrowder)
DATE: 2008-07-11 18:27
SUBJECT: Get 'nil' when use :headers => true option

 

The following works ok...
FasterCSV.foreach("transactions.csv", :headers => false) do |row|
type, time, payee, amount = row
puts payee
end

This does not, all variables are nil...
FasterCSV.foreach("transactions.csv", :headers => true) do |row|
type, time, payee, amount = row
puts payee
end

It does not matter if :return_headers is true or false.

Any ideas?


Thread View

Thread Author Date
Get 'nil' when use :headers => true optionD C2008-07-11 18:27
      RE: Get 'nil' when use :headers => true optionJames Gray2008-07-14 12:56

Post a followup to this message