Displaying 1 result from an estimated 1 matches for "oncall_id".
Did you mean:
call_id
2014 Apr 23
0
Select fields, Coffeescript and Cocoon
...parately.
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 'change', ('#ops_select'), ->
$.ajax '/projects/update_oncalls/',
type: 'GET'
dataType: 'script'
data: {
ops_group_id: $(&...