Forum: Ruby on Rails Radio buttons in bootstrap

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
bertly_the_coder (Guest)
on 2014-03-01 15:15
(Received via mailing list)
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?
A47e0a6beeb9d048ff054fc1c3a97418?d=identicon&s=25 Walter Davis (walterdavis)
on 2014-03-01 15:58
(Received via mailing list)
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)

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

muchira k. (Guest)
on 2014-03-02 02:06
(Received via mailing list)
Beautiful! That worked....thx!

On Sat, Mar 1, 2014 at 5:56 PM, Walter Lee Davis <>

> >       =f.association :search_engine, as: :radio_buttons,
>                 <label class="radio-inline">
> Walter
> > 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
> To post to this group, send email to
> 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!!
This topic is locked and can not be replied to.