Goro Kuroita wrote: > If you mean CSV to DB records, you should use fixtures. > > On terminal window. > rake db:fixtures:load FIXTURES=table_name RAILS_ENV=development > > Change 'table_name' and RAILS_ENV=~ as you like. > This will import CSV as DB records.
Can you exapnd on this idea, I needed to bring in a whole load of records to my app from a CSV and wrote a custom method (with fasterCSV) to read them in. Am now wondering if fixtures would have been a better way to go and maybe I should be using them in future as I import more data to my app? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

