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' }
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' }