Try putting this ProfilesController#update , before #update_attributes
is called:
params[:profile][:service_ids] ||=
And put this in ServicesController#update , before #update_attributes
is called:
params[:service][:profile_ids] || =
These are needed because forms don't submit values for unticked
checkboxes. If you watch the "HABTM Checkboxes" RailsCast, you'll
learn more about this: