Re: [Rails] after_create not being called in seeds.rb?

2010-09-12 Thread radhames brito
i think self is a reserved word! shouldnt it be current_user? On Sun, Sep 12, 2010 at 8:23 AM, Heinz Strunk wrote: > Hello, > > I'm using the seeds.rb to create some user records: > 100.times do > user = User.new > user.username = Faker::Name.first_name > user.email = user.username+"@example.

[Rails] after_create not being called in seeds.rb?

2010-09-12 Thread Heinz Strunk
Hello, I'm using the seeds.rb to create some user records: 100.times do user = User.new user.username = Faker::Name.first_name user.email = user.username+"@example.com" user.save! end This works just fine and the users have been created after I ran db:seeds but what's not working is: aft