Plugins - validates_email_format_of

StarAdd to favorites

Validates email format

Validate various formats of email address against RFC 2822.

Usage

 class Person < ActiveRecord::Base
   validates_email_format_of :email
 end

Testing

To execute the unit tests run rake test.

The unit tests for this plugin use an in-memory sqlite3 database.

Resources

Subversion

Credits

Written by Alex Dunae (dunae.ca), 2006.

Alex Dunae

http://code.dunae.ca/validates_email_format_of.html

http://code.dunae.ca/validates_email_format_of

Rails' (MIT)

  • Currently 4.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Model

Tags

Comments

Add a comment
Alex 8 Aug 2007

@shlick - thanks for fixing that - one should never move house and move server all at the same time.

I've removed the duplicate test case.

schlick 2 Jul 2007

The correct URL for the repository is: http://code.dunae.ca/validatesemailformat_of/

Also, I noticed that one of the tests are repeated: testshouldallowcustomerror_message.

I tried to email the developer but couldn't find an email address.

Alex 9 Dec 2006

It should be working

John Boyel 28 Nov 2006

I'd like to download this plugin, but like Tom said the SVN url needs auth.

Tom Fakes 27 Nov 2006

The SVN url needs authentication

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?