Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modify devise route for nice logout using DELETE

  • Loading branch information...
commit 824caad1b28f47480a3f9d4e2c5a8d0113835556 1 parent ab7af9b
@benlangfeld authored
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:
Please sign in to comment.
Something went wrong with that request. Please try again.