Closed ghost closed 8 years ago
there is something wrong using the f.checkbox generated html...
I change it to standard html ... and it works perfectly
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<p class='col-sm-3 control-label' >READ</p>
<div class="col-sm-9">
<input id="allow_read" name="permission[allow_read]" type="checkbox" value="1" data-size ='medium', data-on-color ='success' data-on-text = "YES" data-off-text = "NO" />
</div>
</div>
</div>
</div>
I am trying to use the gem with Rails 4 this way
The generated HTML is weird , the OFF text is displayed on the left side of the switch with translated on/off texts ..