Functionality reduction? How to customize full_message for validation error using i18n in Rails 3?


I just posted a bug report about this:

The more I think about this, the more puzzled I am as to what the new
convention for Rails 3 is to override a validation error that doesn't
fit into the "%{attribute} %{message}" format that the current
framework imposes.

In Rails 2.3, it was possible to override the :full_message on a per-
attribute basis through i18N, in em.yml. I can't find any
documentation or even discussion about it. The only vague reference is
a thread from a year ago by Rodrigo Rosenfeld Rosas to override the
full_message as a validation parameter, but that didn't fly either.

Concretely, given code like this:

errors.add(:credit_card_number, :authentication_failure)

I want to be able to have a custom message that doesn't start with the
attribute name. I do want to add the error to the attribute, however,
so that the correct form field gets highlighted. I'd be most grateful
if anyone could point me in the right direction, if I overlooked
something, or confirm that this was removed from Rails 2.3.x



How about this approach?