I'm using SimpleForm 2.0.1 with Twitter Bootstrap 2.0.1. I like the way this puts the field-level error messages right next to the field with the "help-inline" class. However it seems this only displays one message per field. For example, given this form (with subform):
<%= simple_form_for(@account, :html => {:class => 'form-horizontal' }) do |f| %>
<div class="inputs">
<%= render 'account_fields', :f => f %>
<%= f.fields_for :users do |user_form| %>
<%= user_form.input :email, :required => true %>
<%= user_form.input :password, :required => true %>
<%= user_form.input :password_confirmation, :required => true %>
<% end %>
</div>
<div class="actions">
<%= f.button :submit, "Create Account" %>
</div>
<% end %>
If I type a correct email address but then put only one character in the password field, the highlighted password field should say:
doesn't match confirmation, is too short (minimum is 8 characters)
However it only says "doesn't match confirmation." This is especially confusing since the top of the form says "2 errors
prohibited this account
from being saved" but only one error is listed.
How can I get simple_form to list all validation messages on a field?
Thanks,
Mark Berry
MCB Systems