sajad torkamani

Add the following Active Record validation to a model (e.g., User):

validates :email, format: { with: URI::MailTo::EMAIL_REGEXP } 
Tagged: Rails