title: Showing users name on nav bar when logged in using ruby on rails
body: <p>I want to be able to replace Accounts tab on my navigation bar with the User's name when they logged in.  How would i go about doing that.  Would i have to use some sort of embedded ruby like &lt;%=  @user.name %>  </p>
  
  <p>heres the html</p>
  
  <pre><code>   enter code here
  
  &lt;header class="navbar navbar-fixed-top"&gt;
    &lt;div class="navbar-inner"&gt;
      &lt;div class="container"&gt;
        &lt;%= link_to "sample app", root_path, id: "logo" %&gt; 
        &lt;nav&gt;
          &lt;ul class="nav pull-right"&gt;
            &lt;li&gt;&lt;%= link_to "Home", root_path %&gt;&lt;/li&gt; 
            &lt;li&gt;&lt;%= link_to "Help", help_path %&gt;&lt;/li&gt; 
            &lt;% if signed_in? %&gt;
            &lt;li&gt;&lt;%= link_to "Users", '#' %&gt;&lt;/li&gt; 
            &lt;li id="fat-menu" class="dropdown"&gt;
              &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;
                 Account
                &lt;b class="caret"&gt;&lt;/b&gt;
              &lt;/a&gt;
              &lt;ul class="dropdown-menu"&gt;
                &lt;li&gt;&lt;%= link_to "Profile", user_path(current_user) %&gt;&lt;/li&gt; 
                &lt;li&gt;&lt;%= link_to "Settings", '#' %&gt;&lt;/li&gt;
                &lt;li class="divider"&gt;&lt;/li&gt;
                &lt;li&gt;
                  &lt;%= link_to "Sign out", signout_path, method: 'delete' %&gt; 
                &lt;/li&gt;
              &lt;/ul&gt; 
            &lt;/li&gt;
          &lt;% else %&gt;
            &lt;li&gt;&lt;%= link_to "Sign in", signin_path %&gt;&lt;/li&gt;
          &lt;% end %&gt; 
         &lt;/ul&gt;
        &lt;/nav&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/header&gt;
  </code></pre>