Putting button_to inline with text: twitter-bootstrap-rails

ruby-on-rails, twitter-bootstrap, view

Solution

Try changing the `button_to` to `link_to` and double checking that css contains something like `position: relative; display: inline`. You might also check that the div is wide enough!

Problem

I am rendering a partial with 2 buttons and text and trying to put that couple of buttons on the same line as my text, using twitter bootstrap. Partial file: ``` <div class="well pull-right inline"> <% if logged_in? %> Logged in as <%= session[:user] %>. <%= button_to 'Logout', logout_path, :class => "btn btn-danger", :form_class => "form-inline form-horizontal" %> <% else %> Welcome Guest! <%= button_to "Login", login_path, {:class => "btn btn-success inline", :form_class => "form-inline form-horizontal"} %> or <%= button_to 'Register', register_path, {:class => "btn btn-primary inline", :form_class => "form-inline form-horizontal"} %> <% end %> </div> ``` Same goes for the logout button that renders when the user is logged in. I have tried putting various things in `button_to` class as well as its `form_class`, nothing worked so far, each button is on its own line. Any help or hints greatly appreciated!

Original source