Simple_form how to make accept terms checkbox inline

后端 未结 3 818
无人共我
无人共我 2020-12-31 13:32

<%= f.input :terms, :as => :boolean, :label => false, :boolean_style => :inline %> Accept <%= link_to \"Terms of use\", terms_path,:remot

3条回答
  •  暖寄归人
    2020-12-31 14:09

    Try using wrapper_html like this:

    <%= f.input :terms, :as => :boolean, :label => false, :boolean_style => :inline, :wrapper_html => { :style => 'display: inline' } %> Accept <%= link_to "Terms of use", terms_path,:remote => true %> and <%=link_to "privacy Policy", privacy_path, :remote => true%>

提交回复
热议问题