ruby on rails - How to generate a radio-inline label with simple_form and bootstrap? -
i'm using: <%= simple_form_for @visitor, html: {class: 'form-inline'} |f| %> <%= f.error_notification %> <%= f.input :favorite, label: false, as: :radio_buttons %> <%= f.submit "choose!", :class => "btn btn-primary"%> <% end %> and html: <div class="control-group radio_buttons required visitor_favourite"> <div class="controls"> <label class="radio"> <input class="radio_buttons required" id="visitor_favourite_true" name="visitor[favourite]" type="radio" value="true" /> yes </label> <label class="radio"> <input class="radio_buttons required" id="visitor_favourite_false" name="visitor[favourite]" type="radio" value="false" /> no </label...