Reputation: 35
I am having a bit of trouble figuring out how to create a link_to tag for the syntax below.
<li class="bg-master-lighter">
<a href="#" class="clearfix">
<span class="pull-left">Logout</span>
<span class="pull-right"><i class="pg-power"></i></span>
</a>
</li>
I am using devise gem so i am trying to add a logout method to the link but my styling goes like above
Upvotes: 0
Views: 309
Reputation:
As per Devise manual the link should look like this:
<li class="bg-master-lighter">
<%= link_to destroy_user_session_path, method: :delete, class: "clearfix" do %>
<span class="pull-left">Logout</span>
<span class="pull-right"><i class="pg-power"></i></span>
<% end %>
</li>
Upvotes: 2