James Spolsdoff

Joined

20 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Introduction to Importing from CSV Discussion

Awesome, thanks for the quick reply.

Just changed it following your directions and it works great.

CSV.foreach(filename, encoding: "ISO-8859-1", headers: true) do |row|

Posted in Introduction to Importing from CSV Discussion

Hey Chris,

Just joined your site. Thanks for all the great videos. Was working through importing a CSV and I had a quick question regarding removing headers from the file.

In my application I had to use the following code for the loop:

CSV.foreach(filename, "r:ISO-8859-1") do |row|

When I tried adding the argument to ignore the header it didn't work. Is there something I'm missing?