I\'m having issues with creating a form that will save my has_many :through associations. I\'ve successfully saved by posting json, but the forms just won\'t work for me yet.
For anyone fighting the same kind of issue, I finally managed to get this to work with the following collection_select:
<%= f.collection_select(:feature_ids, Feature.all, :id, :name, {include_blank: false, :include_hidden => false, :selected => @property.features.map(&:id)}, {:multiple => true}) %>