Displaying 1 result from an estimated 1 matches for "usergroup_fields".
2014 Apr 23
0
Select fields, Coffeescript and Cocoon
...lo,
I have select field which after a choice happened, 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_s...