This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install pluginaweek-validates_as_email_address
commit 0121dfa0a398a26a5abbca47f625c1f695e1cbae
tree cbf0706bbf6a2aa153f4328a7a2c7c363eddb2fd
parent c52550acfaef7bdbc5158e6f43a3663949e5f4fd
tree cbf0706bbf6a2aa153f4328a7a2c7c363eddb2fd
parent c52550acfaef7bdbc5158e6f43a3663949e5f4fd
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Fri Jul 04 15:49:04 -0700 2008 | |
| |
CHANGELOG.rdoc | ||
| |
LICENSE | Mon Jul 30 09:39:16 -0700 2007 | |
| |
README.rdoc | ||
| |
Rakefile | Tue Jun 09 20:36:15 -0700 2009 | |
| |
init.rb | ||
| |
lib/ | ||
| |
test/ | ||
| |
validates_as_email_address.gemspec |
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












