Skip to content
Tutorial on creating gems - source code- validate email address
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.document
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
README.rdoc
Rakefile
VERSION
validate_email_address.gemspec

README.rdoc

validate_email_address gem

Source code for Getting started with Gems: How to create a gem for Rails 3 tutorial.

Extend ActiveRecord validations by checking if a string is a valid email address.

Use

In your model:

validates_email_address_of :email

Copyright

Copyright © 2011 Gal Koren. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.