Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Gemfile:
- gem 'validates_email_format_of', :git => 'git://github.com/alexdunae/validates_email_format_of.git'
- Model:
- class User < ActiveRecord::Base
- attr_accessible :email, :name
- validates :email, :email_format => {:message => 'Not a vaild email address'}
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement