Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [2] pry(main)> c = Client.where(email: 'ivan@ivanhq.net').first
- [3] pry(main)> c.valid_password? 'ivan1234'
- => false
- [4] pry(main)> c.password = 'ivan1234'
- => "ivan1234"
- [5] pry(main)> c.password_confirmation = 'ivan1234'
- => "ivan1234"
- [6] pry(main)> c.save
- => false
- [7] pry(main)> c.errors.messages
- => {:phone_number=>["Invalid phone number"]}
- [8] pry(main)> c.phone_number
- => "678796894"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement