Simple_form: Remove outer label for an inline checkbox with label

前端 未结 6 1472
盖世英雄少女心
盖世英雄少女心 2021-02-02 07:14

Using Simple_form 2.0.2

The simple form code using HAML:

= f.input :remember_me, as: :boolean, inline_label: \'Remember me\'

But it ren

6条回答
  •  余生分开走
    2021-02-02 08:08

    You can use:

    = f.input :remember_me, as: :boolean, inline_label: 'Remember me', label: false
    

提交回复
热议问题