title: Twitter Bootstrap navbar right allign link
body: <p>Helo,</p>
  
  <p>New to bootstrap and trying to use it with rails. I am trying to create a navbar and trying to display a link to the extreme right of the navbar which is not working. Here is my code:</p>
  
  <pre><code>   &lt;div class="navbar navbar-fixed-top"&gt;
     &lt;div class="navbar-inner"&gt;  
     &lt;div class="container"&gt;  
  
      &lt;ul class="nav"&gt;  
         &lt;li class="active"&gt;  
           &lt;%= link_to "Rubyblog", root_path, :class =&gt; 'brand' %&gt;
         &lt;/li&gt;  
  
         &lt;li&gt;
           &lt;a href="#"&gt;Edit Account&lt;/a&gt;
         &lt;/li&gt;
  
         &lt;li&gt;
           &lt;a href="#"&gt;Categories&lt;/a&gt;
         &lt;/li&gt;
  
          &lt;ul class = "nav pull-right"&gt;
            &lt;a href="#"&gt;Current User&lt;/a&gt;
          &lt;/ul&gt;
  
      &lt;/ul&gt; 
  
  &lt;/div&gt;  
  </code></pre>
  
  <p><br>
  </p>
  
  <p>I am trying to display the last link "Current User" to the extreme right of the navbar. Using div class"nav pull-right" doesn't seem to work: <a href="http://i.imgur.com/BEBcaIc.png" rel="nofollow">http://i.imgur.com/BEBcaIc.png</a></p>
  
  <p>Please let me know what I am missing/doing wrong. Appreciate your inputs.</p>
  
  <p>Thanks!
  Mike</p>
  
  <p>EDIT: Answering my question:</p>
  
  <p>Pulled the "nav pull-right" out of the main "nav" class tag and it worked. Updated code:</p>
  
  <pre><code> &lt;div class="navbar navbar-fixed-top"&gt;
   &lt;div class="navbar-inner"&gt;  
   &lt;div class="container"&gt;  
  
  &lt;ul class="nav"&gt;  
     &lt;li class="active"&gt;  
       &lt;%= link_to "Rubyblog", root_path, :class =&gt; 'brand' %&gt;
     &lt;/li&gt; 
  
     &lt;% if user_signed_in? %&gt;
  
        &lt;li&gt;
          &lt;%= link_to 'Edit Account', edit_user_registration_path %&gt;
        &lt;/li&gt;
  
        &lt;li&gt;
          &lt;%= link_to 'Categories', categories_path %&gt;
        &lt;/li&gt;
  
        &lt;% if current_user.has_role? :admin %&gt;
           &lt;li&gt;
             &lt;%= link_to 'Users', users_path %&gt;
           &lt;/li&gt;
        &lt;%end%&gt;
     &lt;%else%&gt;
        &lt;li&gt;
          &lt;%= link_to 'Sign up', new_user_registration_path %&gt;
        &lt;/li&gt;
     &lt;% end %&gt;
  &lt;/ul&gt; 
  
     &lt;ul class = "nav pull-right"&gt;
        &lt;li&gt;&lt;%= link_to 'Welcome, '+current_user.name, edit_user_registration_path %&gt;&lt;/li&gt;
     &lt;/ul&gt;
  </code></pre>
  
  <p> </p>