<% f.fields_for :keys do |key_form| %> <%= check_box_tag "keys_to_update", key_form.object.id %> <%= key_form.label :name, key_form.object.name %> <% end %>
This is the output:
<input id="keys_to_update_" name="keys_to_update" type="checkbox" value="4" /> <input id="keys_to_update_" name="keys_to_update" type="checkbox" value="5" />
I try to use cucumber and check only one of them (or all of them) but need an id.
Thanks!