GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Adds support for validating the format/length of email addresses
Homepage: http://www.pluginaweek.org
Clone URL: git://github.com/pluginaweek/validates_as_email_address.git
name age message
file .gitignore Fri Jul 04 15:49:04 -0700 2008 Ignore test/app_root/script [obrie]
file CHANGELOG.rdoc Sun Oct 26 10:01:59 -0700 2008 Tag 0.1.1 release [obrie]
file LICENSE Mon Jul 30 09:39:16 -0700 2007 Finish renaming to validates_as_email_address. [obrie]
file README.rdoc Wed Jun 25 21:38:05 -0700 2008 Update list of plugin resources to GitHub/Light... [obrie]
file Rakefile Sun Oct 26 10:01:59 -0700 2008 Tag 0.1.1 release [obrie]
file init.rb Mon Jul 30 09:39:16 -0700 2007 Finish renaming to validates_as_email_address. [obrie]
directory lib/ Sun Oct 26 09:59:22 -0700 2008 Fix regression in allowing dashes at the beginn... [obrie]
directory test/ Sun Oct 26 09:59:22 -0700 2008 Fix regression in allowing dashes at the beginn... [obrie]
README.rdoc
= validates_as_email_address

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

== Resources

API

* http://api.pluginaweek.org/validates_as_email_address

Bugs

* http://pluginaweek.lighthouseapp.com/projects/13293-validates_as_email_address

Development

* http://github.com/pluginaweek/validates_as_email_address

Source

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

== 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:
* plugin_test_helper[http://github.com/pluginaweek/plugin_test_helper]

To run against a specific version of Rails:

  rake test RAILS_FRAMEWORK_ROOT=/path/to/rails

== Dependencies

* Rails 2.0 or later

== References

* Cal Henderson - {Parsing Email Adresses in PHP}[http://iamcal.com/publish/articles/php/parsing_email]
* Tim Fletcher - {Ruby Translation}[http://tfletcher.com/lib/rfc822.rb]
* Dan Kubb[dan.kubb@autopilotmarketing.com]
* Ximon Eighteen[ximon.eightee@int.greenpeace.org]
* Thijs van der Vossen - validates_as_email[https://svn.greenpeace.org/repositories/rails_plugins/validates_as_email]