我的表单中有此代码:
guidances/new.html.erb
<%= f.association :employee_department, as: :select %> <%= f.input :guidance_supervisor do %> <%= f.select :guidance_supervisor, Employee.where('guidance_supervisor' => true).map(&:full_name) %> <% end %>
and when selecting a department I need to make the employees who belongs to that department appears, I'm using simple_form , what is the way to make this happen ?