I have has_and_belongs_to_many association between two models.
I made use of collection_select to represent the other model in this association in a form. When I tried to deselect options in collection_select, collection_select doesn't post its empty value and, thus, it doesn't let ActiveRecord pass any update clause to the database.
e.g. Parameters are like; When onptions selected; Parameters: {"name_of_model"=>{"name"=>"de2", "other_model_ids"=>["1", "3"]}
When none selected; Parameters: {"name_of_model"=>{"name"=>"de2" }
Does anyone know a workaround for this?