title: ruby on rails bootstrap pull-right
body: <p>Why does the ul class="nav pull-right" line not Work? i think it depends on the if and else but i don't know ... can someone help me?</p>
  
  <pre><code>&lt;div class="navbar navbar-fluid-top"&gt;
    &lt;div class="navbar-inner"&gt;
      &lt;div class="container-fluid"&gt;
        &lt;a class="btn btn-navbar" data-target=".nav-collapse" data-toggle="collapse"&gt;
          &lt;span class="icon-bar"&gt;&lt;/span&gt;
          &lt;span class="icon-bar"&gt;&lt;/span&gt;
          &lt;span class="icon-bar"&gt;&lt;/span&gt;
        &lt;/a&gt;
        &lt;a class="brand" href="/"&gt;Test1&lt;/a&gt;
        &lt;div class="container-fluid nav-collapse"&gt;
          &lt;ul class="nav"&gt;
            &lt;% if user_signed_in? %&gt;
            &lt;li&gt;&lt;%= link_to "Link1", "/path1"  %&gt;&lt;/li&gt;
            &lt;li&gt;&lt;%= link_to "Link2", "/path2"  %&gt;&lt;/li&gt;
            &lt;li&gt;&lt;%= link_to "Link3", "/path3"  %&gt;&lt;/li&gt;
            &lt;li&gt;Welcome, &lt;%= current_user.email %&gt;!&lt;/li&gt;
            &lt;/ul&gt;
            &lt;ul class="nav pull-right"&gt;
            &lt;li&gt;&lt;%= link_to "Log out", destroy_user_session_path, method: :delete %&gt;&lt;/li&gt;
          &lt;% else %&gt;
            &lt;li&gt;&lt;%= link_to "Sign in", new_user_session_path %&gt;&lt;/li&gt;
            &lt;li&gt;&lt;%= link_to "Sign up", new_user_registration_path %&gt;&lt;/li&gt;
          &lt;/ul&gt;
            &lt;% end %&gt;
        &lt;/div&gt;&lt;!--/.nav-collapse --&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>