search for: age_limit

Displaying 1 result from an estimated 1 matches for "age_limit".

Did you mean: a_limit
2007 Nov 03
3
Birthdate validation
...=> /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a- z]{2,})$/i validates_acceptance_of :policy_agreement, :message => "must be accepted. You have to read and agree with the Aykall Policies before signing in." validates_multiparameter_assignments :message => " is not a valid date." age_limit = Date.new(Date.today.year, Date.today.month, Date.today.day).change(:year => Date.today.year - 18) validates_numericality_of :birth_date, :less_than => age_limit, :message => "is invalid. You have to be at least 18 years old to sign in." end I''m getting the error mess...