Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors on nested forms not displayed #45

Open
matwithers opened this issue Oct 4, 2011 · 2 comments
Open

Errors on nested forms not displayed #45

matwithers opened this issue Oct 4, 2011 · 2 comments

Comments

@matwithers
Copy link

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
Copy link

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

@ricardocostaza
Copy link

I also have this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants