Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

link_to_remove not passing options to hidden _destroy input #342

Open
khoan opened this issue Oct 14, 2014 · 0 comments
Open

link_to_remove not passing options to hidden _destroy input #342

khoan opened this issue Oct 14, 2014 · 0 comments

Comments

@khoan
Copy link

khoan commented Oct 14, 2014

<%= 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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant