Permalink
Browse files

[auth] Make logout link now use a DELETE request

  • Loading branch information...
1 parent 8cf31c5 commit c402d26e0bf56b266b28ef4c5af8befddb5cac19 @radar radar committed with Apr 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 auth/app/views/spree/shared/_login_bar.html.erb
View
2 auth/app/views/spree/shared/_login_bar.html.erb
@@ -1,6 +1,6 @@
<% if current_user %>
<li><%= link_to t(:my_account), spree.account_path %></li>
- <li><%= link_to t(:logout), spree.destroy_user_session_path %></li>
+ <li><%= link_to t(:logout), spree.destroy_user_session_path, :method => :delete %></li>
<% else %>
<li id="link-to-login"><%= link_to t(:login), spree.login_path %></li>
<% end %>

0 comments on commit c402d26

Please sign in to comment.