gravityblast / web-app-theme

A simple theme for web apps
Other
2.45k stars 387 forks source link

Errors on nested forms not displayed #45

Open matwithers opened 12 years ago

matwithers commented 12 years ago

Hi

I'm having problems getting the validation errors on nested form attributes styled. For example one of the models in my app is 'company' and it accepts nested attributes for 'location'. My new company form has a section for:

<%= f.fields_for :location_attributes do |loc| %> . . . <% end %>

The form renders and creates objects fine. But if the location fails validation no error styles are generated (I'm using ActionView::Base.field_error_proc in my environment.rb) although errors in the 'company' portion of the form are highlighted/displayed fine.

Any ideas ?

Thanks

Mat

geoffd123 commented 12 years ago

I also have this issue, did you find a solution?

ricardocostaza commented 12 years ago

I also have this issue.