No commit activity in last 3 years
No release in over 3 years
Adds support for validating the format/length of email addresses in ActiveRecord
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

validates_as_email_address ¶ ↑

validates_as_email_address adds support for validating the format/length of email addresses.

Resources¶ ↑

API

Bugs

Development

Testing

Source

  • git://github.com/pluginaweek/validates_as_email_address.git

Mailing List

Description¶ ↑

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.

Usage¶ ↑

Example¶ ↑

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

Testing¶ ↑

Before you can run any tests, the following gem must be installed:

To run against a specific version of Rails:

rake test RAILS_FRAMEWORK_ROOT=/path/to/rails

Dependencies¶ ↑

  • Rails 2.0 or later

References¶ ↑