My seed_fu gem is working fine.But does not know how to update/delete an record.My table is as follows..,
1|user1|42|2012-02-17 12:22:00.581111|2012-02-17 12:22:00.581111
2|user2|24|2012-02-17 12:22:00.603150|2012-02-17 12:22:00.603150
I’m having two records .I want to update record2 (i.e,the age as 12).I expect that the record2 to be updated.
Instead I’m getting the new updated record as follows.,
1|user1|42|2012-02-17 12:22:00.581111|2012-02-17 12:22:00.581111
2|user2|24|2012-02-17 12:22:00.603150|2012-02-17 12:22:00.603150
3|user2|12|2012-02-17 12:40:32.577283|2012-02-17 12:40:32.577283
Also I want to know how to delete a record using seed-fu gem.
Seed-fu gem is use only to insert, You can’t update or delete with it. Use ActiveRecord to do that.