What is the best/easy way to validate an email address in ruby (on the server side)?
If you are using Rails/Devise - addition to @apneadiving`s answer -
validates_format_of :email,:with => Devise::email_regexp
Devise::email_regexp is taken from config/initializers/devise.rb
config.email_regexp = /\A[^@\s]+@([^@\s]+\.)+[^@\s]+\z/