= simple_nested_form_for @user, url: settings_path, turboboost: true, validate: true, html: { multipart: true, class: "tutor_update_form" } do |f|
= hidden_field_tag :type, :subjects
= f.input :subject_ids, label: false, validate: true, input_html: {value: '', class: 'token-input', data: {target: autocomplete_api_subjects_path, load: f.object.subjects.to_json(methods: {only: [:id, :name]})}}
= f.button :submit, "Update #{Subject.model_name.human}", class: 'btn btn-info pull-right'