now in my form while submitting, if i wont put password i got 4 error
messages:
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.
any suggestion?
thanks in advance.
Ajit
You should use the :unless option of the validates method in
"validates_length_of :password". This option specifies a method to call
to determine if the validation should not occur.