How to apply bootstrap startup button style with simpleform?

I am using simpleform for twitter bootstrap and I am trying to customize my switches using the data toggle function so that my buttons look like radio buttons visible here:

Twitter bootstrap javascript

How to fix my code:

<%= simple_form_for @person , :html => { :class => 'form-horizontal' } do |f| %> <%= f.input :name %> <%= f.input :password %> <%= f.input :country, as: :radio_buttons, :item_wrapper_class => 'btn-group' %> <%= f.button :submit %> <% end %> 
+4
source share
1 answer

Have you tried under the code snippet:

 <div class="btn-group" data-toggle="buttons-radio"> <button type="button" class="btn btn-primary">Left</button> <button type="button" class="btn btn-primary">Middle</button> <button type="button" class="btn btn-primary">Right</button> </div> 
0
source

All Articles