Advertisement
Guest User

Untitled

a guest
Aug 15th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. Gemfile:
  2. gem 'validates_email_format_of', :git => 'git://github.com/alexdunae/validates_email_format_of.git'
  3.  
  4. Model:
  5. class User < ActiveRecord::Base
  6. attr_accessible :email, :name
  7. validates :email, :email_format => {:message => 'Not a vaild email address'}
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement