On Mar 1, 2014, at 9:13 AM, bertly_the_coder wrote:

> Hi guys,
> 
> I'm using Bootstrap 3 with Rails 4 and having a bit of trouble aligning my 
> horizontal radio-buttons. In my HAML I have this line
> 
> .row
>    .col-md-12    
>       =f.association :search_engine, as: :radio_buttons, item_wrapper_class: 
> 'radio-inline', label: false
>  
> but when I load the page, I get as attached: 
> 
> 

I think you need form-inline on the parent of the radio buttons. Something like 
this (in HTML, can't read HAML)

        <div class="form-inline">
                <label class="radio-inline">
                        <input type="radio">
                </label>
                <label class="radio-inline">
                        <input type="radio">
                </label>
                <label class="radio-inline">
                        <input type="radio">
                </label>
        </div>

Walter


> 
> How can I fix this?
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/0cac56be-c708-445f-834e-62d435cbe12c%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/F2E594F5-6611-40DD-B466-DFCCC3A759FC%40wdstudio.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to