Just getting started here and I have a question... I want to include glyphicons on the links in a dropdown menu using the link_to helper in my Ruby on Rails app.
This is the code I currently have:
<ul class="nav_item pull-right">
<li class="dropdown">
<%= link_to '#', class: "btn btn-default btn-danger dropdown-toggle", "data-toggle" => "dropdown" do %>
<%= current_user.ownername %> <b class="caret"></b>
<% end %>
<ul class="dropdown-menu">
<li><%= link_to "View Profile", owner_path(current_user), class: "glyphicon glyphicon-user" %></li>
<li><%= link_to "Edit Profile", edit_owner_path(current_user) %></li>
<li class="divider"></li>
<li><%= link_to "Log Out", logout_path %></li>
</ul>
</li>
It seems that
<li><%= link_to "View Profile", owner_path(current_user), class: "glyphicon glyphicon-user" %></li>
is causing issues with the link's appearance. Any suggestions on how to fix this?
Thanks,