diff options
author | Tomer Kimia <tkimia@purdue.edu> | 2014-03-04 17:57:15 -0500 |
---|---|---|
committer | Tomer Kimia <tkimia@purdue.edu> | 2014-03-04 17:57:15 -0500 |
commit | 134360da46c1f8e5153c1c9eb5180ac990150d93 (patch) | |
tree | 4709fec28870b98cc66376b527f493d119b0269d /config | |
parent | 8e005f8d325a43e378f21a1042df6a4baf79c12f (diff) |
signin gives error if user cannot sign in
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 85f063e..a4badf9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,7 +3,7 @@ Leaguer::Application.routes.draw do #creates sessions as a resource but limits it to these actions match '/signup', to: 'users#new', via: 'get' match '/signin', to: 'sessions#new', via: 'get' - match '/signout', to: 'sessions#destroy', via: 'get' + match '/signout', to: 'sessions#destroy', via: 'delete' resources :sessions, only: [:new, :create, :destroy] |