title: How to add a glyphicon to a dropdown menu link using the link_to helper (ruby on rails)
body: <p>Newbie question here... 
  I'd like to add glyphicons on the links of a dropdown menu using the link_to helper (ruby on rails app)  </p>
  
  <p>The code I've got is:</p>
  
  <pre><code>&lt;ul class="nav_item pull-right"&gt;
          &lt;li class="dropdown"&gt;
              &lt;%= link_to '#', class: "btn btn-default btn-danger dropdown-toggle", "data-toggle" =&gt; "dropdown" do %&gt;
                  &lt;%= current_user.ownername %&gt; &lt;b class="caret"&gt;&lt;/b&gt;
              &lt;% end %&gt;
              &lt;ul class="dropdown-menu"&gt;
                  &lt;li&gt;&lt;%= link_to "View Profile", owner_path(current_user), class: "glyphicon glyphicon-user" %&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;%= link_to "Edit Profile", edit_owner_path(current_user) %&gt;&lt;/li&gt;
                  &lt;li class="divider"&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;%= link_to "Log Out", logout_path %&gt;&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/li&gt;
  </code></pre>
  
  <p>Evidently the <code>&lt;li&gt;&lt;%= link_to "View Profile", owner_path(current_user), class: "glyphicon glyphicon-user" %&gt;&lt;/li&gt;</code> is my failed attempt, as it affects the look of the link itself... Any advice?</p>
  
  <p>Cheers,</p>