search for: link_to_add_associ

Displaying 1 result from an estimated 1 matches for "link_to_add_associ".

2014 Apr 23
0
Select fields, Coffeescript and Cocoon
..., feeds another select field. Using the gem Cocoon to duplicate this set of select fields. My problem now is to find a solution that the coffee script supplies values for each select field-set separately. My code: form <%= render 'usergroup_fields', :f => usergroup %> <%= link_to_add_association "Add Group", f, :usergroups %> usergroup_fields: <%= f.select :ops_group_id, options_for_select(@groups…..{ id: 'ops_select' } %> <%= f.select :oncall_id, options_for_select(@oncalls….{ id: 'oncalls_select' } %> Coffee: $ -> $(document).on '...