nathanvda/cocoon — Issue #31: Nested form disappears with validation errors
Author: tomconroy
Created: 2011-12-09 11:11:52+00:00
State: open

If you have a form with a link_to_add_association link, the added nested form disappears when the form is submitted and validation errors occur.

I'm using this on the belongs_to end of the assocation (i.e. the parent model with the form belongs_to the nested model) and it doesn't matter whether the validation happens on the parent or nested form.

It should load the form again with the values in the params.