Displaying 1 result from an estimated 1 matches for "default_validation_options".
2007 Mar 09
2
Blank fields getting validated
Hi,
I am not sure if this is already answered in this list. I couldn''t
find an answer. So I am posting the question.
I have multiple validations for a field. For example:
validates_presence_of :contact_email
validates_format_of :contact_email,
:with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i,
:message => "is not a valid email