Attribute option on Errors#full_messages

7 views
Skip to first unread message

Glenn

unread,
Nov 23, 2009, 5:01:15 PM11/23/09
to Ruby on Rails: Core
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

glenn

unread,
Nov 30, 2009, 4:48:26 PM11/30/09
to Ruby on Rails: Core
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
Reply all
Reply to author
Forward
0 new messages