#notification-settings ul - @user.build_notification_settings.each do |notification_type| li = simple_form_for notification_type, url: create_or_update_notification_settings_path, method: :post, turboboost: true do |f| = f.input :enabled, label: false, input_html: {autocomplete: :off} do = f.check_box :enabled , class:'check1', id: "notification_setting_#{f.object.notification_type_text.try(:titleize)}" = f.label f.object.notification_type_text.try(:titleize), class: 'switch' = f.input :notification_type, as: :hidden