i have a registration form. i am validating say, password field using
validates_presence_of :password, :if => :password_required?
validates_presence_of :password_confirmation, :if
validates_length_of :password, :within => 4..40, :if
validates_confirmation_of :password, :if => :password_required?
now in my form while submitting, if i wont put password i got 4 error
password is required
password length should be min 4 chars. and so on
my question is, Is there a way to customize these error messages? all
i need is just one error message per field.
thanks in advance.