- 2,850
- Posts
- 11
- Years
- Seen Nov 14, 2023
The wild Audino fainted! 22GreenAlfs gained 13,534 Exp. Points!
I was writing in the Welcome thread lol
The wild Audino fainted! 22GreenAlfs gained 13,534 Exp. Points!
class User < ActiveRecord::Base
before_save { self.email = email.downcase }
validates :name, presence: true, length: { maximum: 50 }
VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
validates :email, presence: true,
format: { with: VALID_EMAIL_REGEX },
uniqueness: { case_sensitive: false }
has_secure_password
validates :password, length: { minimum: 6 }
end