Attribute option on Errors#full_messages

I want to be able to display full validation messages next to form elements. Currently I can only get validation errors without the prefix for specific fields, or I can get message for all attributes, at which point it's impossible to tell which message came from which attribute.

I made a patch where you can supply an attribute name to full_messages so that you can extract messages for particular fields, while preserving backwards compatibility.

https://rails.lighthouseapp.com/projects/8994/tickets/3505-attribute-option-on-errorsfull_messages

Thanks,

Glenn

I’ve implemented the same thing again on 2-3-stable and attached another patch.

Thanks,

Glenn

https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3505-attribute-option-on-errorsfull_messages#ticket-3505-2