Using Simple_form 2.0.2
The simple form code using HAML:
= f.input :remember_me, as: :boolean, inline_label: 'Remember me'
But it renders this:
<div class="control-group boolean optional"> <label class="boolean optional control-label" for="admin_remember_me">Remember me</label> <div class="controls"> <input name="admin[remember_me]" type="hidden" value="0" /> <label class="checkbox"><input class="boolean optional" id="admin_remember_me" name="admin[remember_me]" type="checkbox" value="1" />Remember me</label> </div> </div>
How do I remove that first label that's rendered, so that I only have the inline label?
You can use:
= f.input :remember_me, as: :boolean, inline_label: 'Remember me', label: false
1.4m articles
1.4m replys
5 comments
57.0k users