What is the best/easy way to validate an email address in ruby (on the server side)?
validates :email, presence: true, format: /\w+@\w+\.{1}[a-zA-Z]{2,}/
checks that email field is not blank and that one or more characters are both preceding the '@' and following it
Added specificity, any 1 or more word characters before an the @
and any 1 or more word character after and in between specifically 1 .
and at least 2 letters after