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
> 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
2 matches
Mail list logo