Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (rdb:1) User.find_by_login("ellie")
- nil
- (rdb:1) user = User.create!(:login => "ellie", :password => "test", :password_confirmation => "test", :email => "ellie@test.com")
- ActiveRecord::RecordInvalid Exception: Validation failed: Login has already been taken, Email has already been taken
Add Comment
Please, Sign In to add comment