Thanks Brian for the reply.

I tried your advice and yes it does retrieve the row.

Irb.transaction do
  FasterCSV.parse(file, :headers => true) do |row|
    puts "Row:" + row.fields(0,1,2,3,4,5).to_s
    Irb.create(row.to_hash)
 end
end

I still get an error...

"Error adding projects to IRB table. (unknown attribute: Q.1B PI8 Last). 
Please try again."

It looks like it's trying to match the header of the csv with the column 
title.

Also, if I just do this...

Irb.transaction do
  FasterCSV.parse(file, :headers => true) do |row|
    puts "Row:" + row.to_s
    Irb.create(row.to_hash)
 end
end

I get all row data with commas. So I am getting the row data without the 
headers.


John
-- 
Posted via http://www.ruby-forum.com/.