summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-04 18:48:38 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-04 18:48:38 -0500
commitcde35e3461bf49a4b32aefca7b8556e344c8090e (patch)
treede105e188b5e346043795b616939030fa7a7a37e /config
parent28f7378d7d2bc2d79fa52f3dcedb734a543f69be (diff)
login/logout buttons
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 90abea4..022ce42 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,13 +1,7 @@
Leaguer::Application.routes.draw do
- resources :sessions, only: [:new, :create, :destroy]
-
-
#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'
-
+ resources :sessions, only: [:new, :create, :destroy]
resources :users