Radio buttons in bootstrap

Hi guys,

I’m using Bootstrap 3 with Rails 4 and having a bit of trouble aligning
horizontal radio-buttons. In my HAML I have this line

=f.association :search_engine, as: :radio_buttons,
item_wrapper_class: ‘radio-inline’, label: false

but when I load the page, I get as attached:

How can I fix this?

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

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


Beautiful! That worked…thx!

On Sat, Mar 1, 2014 at 5:56 PM, Walter Lee D. [email protected]

  =f.association :search_engine, as: :radio_buttons,
            <label class="radio-inline">


To unsubscribe from this group and stop receiving emails from it, send
To unsubscribe from this topic, visit
To unsubscribe from this group and all its topics, send an email to
[email protected]
To post to this group, send email to [email protected]
To view this discussion on the web visit

For more options, visit

Clarity is self-created. The universe is waiting on you, not the other
around - Me.

“Life isn’t about finding yourself. Life is about creating yourself.” -
Bernard Shaw

“Life is what happens while you are busy making plans” - John Lennon

NAMASTE!!! Yeah I said it!!