Re: [Rails] yaml dump of db to be used for creating records

2011-04-22 Thread Jim Ruther Nill
On Fri, Apr 22, 2011 at 9:26 PM, Erwin wrote: > I have an array of Hash to be used for creating records in db with > this format : > > geo_areas.first > => {"id"=>1, "areaOrder"=>1, "areaName"=>"Europe", "areaCode"=>"EUR", > "areaEnabled"=>1} > > I'll loop over the geo_areas array to create all

[Rails] yaml dump of db to be used for creating records

2011-04-22 Thread Erwin
I have an array of Hash to be used for creating records in db with this format : geo_areas.first => {"id"=>1, "areaOrder"=>1, "areaName"=>"Europe", "areaCode"=>"EUR", "areaEnabled"=>1} I'll loop over the geo_areas array to create all records .. but I need to use the 'id' key as the :id of my re