This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
property :email, String, :nullable => false, :unique => true, :format => :email_address, | |
:messages => { | |
:presence => "We need your email address.", | |
:is_unique => "We already have that email.", | |
:format => "Doesn't look like an email address to me ..." | |
} | |
#The messages should map to the stuff we are validating, or else the user needs to LOOK for WHAT to set | |
#This should be better | |
property :email, String, :nullable => false, :unique => true, :format => :email_address, | |
:messages => { | |
:nullable => "We need your email address.", | |
:unique => "We already have that email.", | |
:format => "Doesn't look like an email address to me ..." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment