Permalink
Browse files

Newest devise uses DELETE to send logouts.

  • Loading branch information...
1 parent 777eaeb commit b25f34eca1f4f73cc751077b8c2c79d38efc30d0 Blaž Hrastnik committed Dec 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/layouts/application.html.haml
@@ -39,7 +39,7 @@
= navigate_to :timeline, "Timeline", timeline_organization_path(current_organization), :class => "button pictos time"
= link_to "New Project", new_project_path, :class => "button pictos new"
= navigate_to :account, "Account", edit_user_registration_path, :class => "account"
- = link_to "Logout", destroy_user_session_path, :class => "logout"
+ = link_to "Logout", destroy_user_session_path, :class => "logout", :method => :delete
- else
- if controller.controller_name == "sessions" && controller.action_name == "new"
= link_to "Sign up", new_user_registration_path, :class => "button", :style => "float:right"

0 comments on commit b25f34e

Please sign in to comment.