rails/rails — pull request #7369 by ey-pairing (2012-08-16 18:14:39+00:00)
Title: i18n error messages: custom formats by attribute

First place lookup is now: errors.formats.attributes.#{attribute}

Example use case:

errors:
attributes:
last_name:
blank: you must provide your full name
formats:
attributes:
last_name: "%{message}"

(same fallbacks as before)