Validates As Email Address plugin

Plugin details

Consistently reliable email address validations are difficult to find and hard to choose as there are far too many implementations in various programming languages. This plugins builds on Thijs van der Vossen's validates_as_email by adding advanced validation option support and also validating the length of the email address.

Websitehttp://api.pluginaweek.org/validates_as_email_address/ Repositoryhttp://svn.pluginaweek.org/trunk/validates_as_email_address Author Aaron Pfeifer Tags email, validation LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://svn.pluginaweek.org/trunk/validates_as_email_address

Add the validation to the required classes

e.g.

class Person < ActiveRecord::Base
    validates_as_email_address :email, :on => :create
end

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (1 older version) | Last edited by: obrie572, about 10 hours ago