Activity
An alternative to using the Regex can be using a built-in Ruby constant
validates :email, format: { with: URI::MailTo::EMAIL_REGEXP, message: 'invalid email address provided' }
Save 36% for Black Friday! Save 36% on GoRails for Black Friday! Learn more
An alternative to using the Regex can be using a built-in Ruby constant
validates :email, format: { with: URI::MailTo::EMAIL_REGEXP, message: 'invalid email address provided' }