I am using Simple_form, twitter bootstrap, and rails 3.2.2
Does anyone know if there is a way to use the "toggle button" option for bootstrap on boolean fields in a simple_form? I would like to replace the checkboxes with buttons.
Here is what I've tried so far with no luck in the form (rails):
<%= f.input :client_approved, :input_html => { :class => 'btn btn-primary', :data => {:toggle => 'button'} } %>
Here is the HTML output:
<input class="boolean optional btn btn-primary" data-toggle="button" id="id_card_design_client_approved" name="id_card_design[client_approved]" type="checkbox" value="1">Any ideas on how to assign a button tag to the simple_form input?
Here is an example from the twitter bootstrap website for the toggle button tag:
<button class="btn" data-toggle="button">Single Toggle</button>