add checkbox with simple_form without association with model?

后端 未结 6 1443
北荒
北荒 2020-12-29 03:49

How I can add checkbox with simple_form without association with model? I want to create checkbox which will handle some javascript events, but don\'t know? Maybe I miss som

6条回答
  •  执笔经年
    2020-12-29 04:07

    Here is another variation:

    = f.label :some_param, class: "label__class" do
      = f.input_field :some_param, class: "checkbox__class"
      Label text
    

提交回复
热议问题