Default ActiveModel::Errors are great, but i am solving problem, that the messages are anonymous. For example there is message should look like an email address.
that belongs to email
field, but what i want is to know that this error message is format
type. And the other message doesn't match confirmation
is confirmation
type.
#<ActiveModel::Errors:0x000001054abef0 @base=#<User ... >,
@messages={
:password=>["doesn't match confirmation"],
:email=>["should look like an email address."]}>
Is there any gem for better errors, or do any of you have idea of monkey patch?
Thanks