sajad torkamani

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

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

Leave a comment

Your email address will not be published. Required fields are marked *