[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.