> Just yesterday I was parsing a CSV file, and importing into some
> DataMapper models, and the code to map the fields to the column was
> pretty simple:
>
>   http://gist.github.com/50671
>   

It's even simpler, a one liner which does the same thing:
   
FasterCSV.foreach(file, :headers => true, :header_converters => :symbol) 
do |row|




Cheers,
Lawrence



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to