summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-03-02 15:59:50 -0500
committerDavisLWebb <davislwebb@ymail.com>2014-03-02 15:59:50 -0500
commit7d84062ebe272855c0e6ebbfd991ab277fdc079f (patch)
treeb7e435021aeb4a78f1e1798556e52c6f1f9c2857 /config
parent0d3a1f6030eec5631892ec733ec75001bfe2f9ff (diff)
currently adding Session controller and view
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb72
1 files changed, 40 insertions, 32 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 7d898b8..a4f1f66 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,4 +1,12 @@
Leaguer::Application.routes.draw do
+
+ #creates sessions as a resource but limits it to these actions
+ resources :sessions, only: [:new, :create, :destroy]
+
+ match 'signup', to: 'users#new', via: 'get'
+ match 'signin', to: 'sessions#new', via: 'get'
+ match 'signout', to: 'sessions#destroy', via: 'delete'
+
resources :pms
resources :alerts
@@ -24,51 +32,51 @@ Leaguer::Application.routes.draw do
# root 'welcome#index'
# Example of regular route:
- # get 'products/:id' => 'catalog#view'
+ # get 'products/:id' => 'catalog#view'
# Example of named route that can be invoked with purchase_url(id: product.id)
- # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
# Example resource route (maps HTTP verbs to controller actions automatically):
- # resources :products
+ # resources :products
# Example resource route with options:
- # resources :products do
- # member do
- # get 'short'
- # post 'toggle'
- # end
+ # resources :products do
+ # member do
+ # get 'short'
+ # post 'toggle'
+ # end
#
- # collection do
- # get 'sold'
- # end
- # end
+ # collection do
+ # get 'sold'
+ # end
+ # end
# Example resource route with sub-resources:
- # resources :products do
- # resources :comments, :sales
- # resource :seller
- # end
+ # resources :products do
+ # resources :comments, :sales
+ # resource :seller
+ # end
# Example resource route with more complex sub-resources:
- # resources :products do
- # resources :comments
- # resources :sales do
- # get 'recent', on: :collection
- # end
- # end
+ # resources :products do
+ # resources :comments
+ # resources :sales do
+ # get 'recent', on: :collection
+ # end
+ # end
# Example resource route with concerns:
- # concern :toggleable do
- # post 'toggle'
- # end
- # resources :posts, concerns: :toggleable
- # resources :photos, concerns: :toggleable
+ # concern :toggleable do
+ # post 'toggle'
+ # end
+ # resources :posts, concerns: :toggleable
+ # resources :photos, concerns: :toggleable
# Example resource route within a namespace:
- # namespace :admin do
- # # Directs /admin/products/* to Admin::ProductsController
- # # (app/controllers/admin/products_controller.rb)
- # resources :products
- # end
+ # namespace :admin do
+ # # Directs /admin/products/* to Admin::ProductsController
+ # # (app/controllers/admin/products_controller.rb)
+ # resources :products
+ # end
end