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

2010-09-13 Thread radhames brito
sorry now i see it makes no sense, i understood that this is all in your seed.rb and both functions will only be used once and i was suggesting this 100.times do user = User.new user.username = Faker::Name.first_name user.email = user.username+"@example.com" user.save! write_comments(use

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

2010-09-13 Thread Heinz Strunk
> put the function in the loop after the user.save ? What exactly do you mean by put it in the loop after .save? -- 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