Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Role.create :name => 'authenticated', :assignable => false
- Role.create :name => 'anonymous', :assignable => false
- user = User.new :name => 'tj', :password => 'foobar', :email => 'foo@bar.com'
- user.password_confirmation = 'foobar'
- user.email_confirmation = 'foo@bar.com'
- p user.save # => true
- p user.save(:register) # => validation context register doesn't seem to be defined. Known contexts are [:default]
Add Comment
Please, Sign In to add comment