I want to use collection_check_boxes (in rails 4) but i am a little bit stuck
I have 2 models:
class Supervisioncategory < ActiveRecord::Base
has_many :phonenotes
end
and
class Phonenote < ActiveRecord::Base
belongs_to :employee
belongs_to :supervisioncategory
belongs_to :trainingcategory
end
and I want to use collection_check_box for the categories shows all the categories I want, I can check them, I made the ":supervision_ids" accessible. But then nothing happend?
I think my problem is at the type of the ":supervision_ids".. integer won't work, string won't work. Please help?