nested_form icon indicating copy to clipboard operation
nested_form copied to clipboard

link_to_remove not passing options to hidden _destroy input

Open khoan opened this issue 10 years ago • 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>

khoan avatar Oct 14 '14 05:10 khoan