This project is archived and is in readonly mode.

#3505 ✓stale
Glenn

Attribute option on Errors#full_messages

Reported by Glenn | November 23rd, 2009 @ 09:59 PM

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 attribute names to full_messages so that you can extract that messages for particular fields, while preserving backwards compatibility.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages