Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
Newest devise uses DELETE to send logouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaž Hrastnik committed Dec 8, 2012
1 parent 777eaeb commit b25f34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.haml
Expand Up @@ -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"
Expand Down

0 comments on commit b25f34e

Please sign in to comment.