| 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? | |