ryanb/nested_form — pull request #301 by kuldeepaggarwal (2013-11-28 19:30:25+00:00)
Title: hide elements from DOM if _destroy="true" after validation errors

When we remove the nested element by clicking on `Remove` link then we hide the elements using JS, but then if we submit the form and error occurs, form again renders and the last removed(hidden) elements have shown on the DOM with _destroy="true", and now if submit the form correctly, it passes the params with _destroy="true" => which would destroy the nested elements, so I think we should not display the last removed(hidden) elements after errors occur on the server.