#19 new
Emmanuel Surleau (Mercurial Alchemist)

[Patch] For merb-helpers, separate error messages for the same field

Reported by Emmanuel Surleau (Mercurial Alchemist) | December 20th, 2008 @ 11:41 PM

Currently, error messages (created with error_messages_for) are formatted in a list, with one li tag for each field. However, for AR-like models, errors for the same fields are joined with a space. This gives such interesting error messages as:

Name must not be blank Name must be between 1 and 255 characters long

The attached patch (for 1.0.x) corrects this behaviour, by creating an li item for each error. You will also find a failing spec attached.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

Shared Ticket Bins

Pages