pluginaweek / validates_as_email_address
- Source
- Commits
- Network (3)
- Downloads (8)
- Wiki (1)
- Graphs
-
Tree:
c52550a
commit c52550acfaef7bdbc5158e6f43a3663949e5f4fd
tree d76986e37f04dacb758fb7a644d2109708e5d4e7
parent daf4895b6b2b3faf605c79d38e40d882d8c31e74
tree d76986e37f04dacb758fb7a644d2109708e5d4e7
parent daf4895b6b2b3faf605c79d38e40d882d8c31e74
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Fri Jul 04 15:49:04 -0700 2008 | |
| |
CHANGELOG.rdoc | Mon Apr 13 18:07:23 -0700 2009 | |
| |
LICENSE | Mon Jul 30 09:39:16 -0700 2007 | |
| |
README.rdoc | Wed Jun 25 21:38:05 -0700 2008 | |
| |
Rakefile | ||
| |
init.rb | Mon Jul 30 09:39:16 -0700 2007 | |
| |
lib/ | Sun Apr 12 12:58:47 -0700 2009 | |
| |
test/ | Sun Apr 12 20:54:03 -0700 2009 |
README.rdoc
validates_as_email_address
validates_as_email_address adds support for validating the format/length of email addresses.
Resources
API
Bugs
Development
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:
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
- Tim Fletcher - Ruby Translation
- Dan Kubb
- Ximon Eighteen
- Thijs van der Vossen - validates_as_email

