mardi 5 mai 2015

Creating user from rails console command?

I am newbie in Ruby, I am trying to install one app that says:

lobsters$ rails console
Loading development environment (Rails 4.1.8)

irb(main):001:0> User.create(:username => "test", :email => "test@example.com", :password => "test", :password_confirmation => "test", :is_admin => true, :is_moderator => true
irb(main):002:0> Tag.create(:tag => "test")

When I run rails console, it outputs "create some file" So how do I create user?

Aucun commentaire:

Enregistrer un commentaire