diff options
author | DavisLWebb <davislwebb@ymail.com> | 2014-03-04 17:59:14 -0500 |
---|---|---|
committer | DavisLWebb <davislwebb@ymail.com> | 2014-03-04 17:59:14 -0500 |
commit | 8740f17405abef0f4975f028e33b3029fcb35634 (patch) | |
tree | e53e7d1e2305918d203ae4904d660b2c2b3b61a7 | |
parent | d37bfd1e96f01d6f0fae275924e89dfe17a94938 (diff) |
Routes
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 85f063e..90abea4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,11 +1,13 @@ 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 |