I think you should use simple_fields_for
here. That way it will be submitted as a nested form and be automatically saved in database. I'm not sure whether association
can be used to save attributes of the associated model.
= simple_form_for @user do |f|
= f.input :name
= f.input :email, label: "E-mail"
- f.simple_fields_for :publications do |subscription|
# Here you have all simple_form methods available
= subscription.check_box :active
= f.button :submit, "Save"
Also note that you will have to add accepts_nested_attributes_for :subscriptions in the User model. And you will need to add this in your User model:
attr_accessible :subscriptions_attributes