Update multiple checkboxes on association model through nested attributes with Cocoon gem in Rails
问题 I found this answer here which should be able to solve my problem but turns out that answer is for a one to many association. Btw, i'm using Rails 5.2 In my many to many, I have a Task model which has_many test_methods through tasks_test_methods where tasks_test_methods is a join table. class Task < ApplicationRecord has_many :tasks_test_methods, inverse_of: :task, :dependent => :destroy has_many :test_methods, :through => :tasks_test_methods accepts_nested_attributes_for :tasks_test_methods,