ruby on rails 3 - Bootstrap (2.3.1) + SimpleForm (2.1) inline label for radio button group -


i'm trying create inline radio buttons has label inline (at left).

as state in title, using bootstrap , simpleform.

my code looks this:

<%= f.input :breakdown_or_size,              :collection => ["breakdown", "manual"],             :as => :radio_buttons,              :item_wrapper_class => 'inline',             :label => 'select one: ' %> 

this get:

radio buttons below label http://www.webpagescreenshot.info/i3/516f8dbc4c7633-60839289

i looked high , low simple_form_for help. in end couldn't find anything, @ least form_for can this:

<%= form_for(@book) |f| %>   <% if @book.errors.any? %>   <div id="error_explanation">   <h2><%= pluralize(@book.errors.count, "error") %> prohibited book being saved:</h2>      <ul>     <% @book.errors.full_messages.each |msg| %>       <li><%= msg %></li>     <% end %>     </ul>   </div> <% end %>  <div class="actions", style='inline'>    <%= f.label 'select one: ' %>   <br/>   <%= f.radio_button :collection, "breakdown" %> breakdown   <%= f.radio_button :collection, "manual" %> manual   <br/>   <%= f.submit %> </div> 

which @ least solves inline rendering.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -