You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: