When I delete a nested item and submit, if the validation fails the render form show the deleted itens. It keeps marked _destroy = true. but it shows in the form.
when destroy it marks the fields div as display: none and reloaded by validation failed it don't.
I created a js.coffee to solve it outside nested_form script file.
When I delete a nested item and submit, if the validation fails the render form show the deleted itens. It keeps marked _destroy = true. but it shows in the form.
when destroy it marks the fields div as display: none and reloaded by validation failed it don't. I created a js.coffee to solve it outside nested_form script file.
jQuery -> $(".marked_for_destruction").hide()