CREDIT TO:This question kept popping up when i was searching for how to skip the first line with the CSV / FasterCSV libraries, so here's the solution that if you end up here.
the solution is...CSV.foreach("path/to/file.csv",{:headers=>:first_row}) do |row|
HTH.
http://stackoverflow.com/a/7727809
0 comments:
Post a Comment