Skip to content
Browse files

Modify devise route for nice logout using DELETE

  • Loading branch information...
1 parent ab7af9b commit 824caad1b28f47480a3f9d4e2c5a8d0113835556 @benlangfeld committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 Server/config/routes.rb
View
5 Server/config/routes.rb
@@ -1,6 +1,7 @@
Server::Application.routes.draw do
- devise_for :users
-
+ devise_for :users do
+ delete "/logout" => "devise/sessions#destroy"
+ end
resources :projects, :tasks
root :to => "projects#index"
# The priority is based upon order of creation:

0 comments on commit 824caad

Please sign in to comment.
Something went wrong with that request. Please try again.