"has_many :through" and checkboxes

instead of "topic_ids" have you tried "topic_id"

ActiveRecord isn't seeing a method for topic_ids because that's not the
name of the field in your database.