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