ryanb/nested_form

link_to_remove not passing options to hidden _destroy input

khoan opened this issue · 0 comments

<%= form.link_to_remove "Delete", form: 'bam' %>

generates

<input id="bams_attributes_0__destroy" name="page[bams_attributes][0][_destroy]" type="hidden" value="false">
<a class="remove_nested_fields" form="bam" href="javascript:void(0)">Delete</a>

expected form="bam" to be included in hidden input

<input form="bam" id="bams_attributes_0__destroy" name="page[bams_attributes][0][_destroy]" type="hidden" value="false">
<a class="remove_nested_fields" form="bam" href="javascript:void(0)">Delete</a>