1 UKPortal::Application.routes.draw do
6 # The priority is based upon order of creation:
7 # first created -> highest priority.
9 # Sample of regular route:
10 # match 'products/:id' => 'catalog#view'
11 # Keep in mind you can assign values other than :controller and :action
13 # Sample of named route:
14 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
15 # This route can be invoked with purchase_url(:id => product.id)
17 # Sample resource route (maps HTTP verbs to controller actions automatically):
20 # Sample resource route with options:
21 # resources :products do
32 # Sample resource route with sub-resources:
33 # resources :products do
34 # resources :comments, :sales
38 # Sample resource route with more complex sub-resources
39 # resources :products do
42 # get 'recent', :on => :collection
46 # Sample resource route within a namespace:
48 # # Directs /admin/products/* to Admin::ProductsController
49 # # (app/controllers/admin/products_controller.rb)
53 # You can have the root of your site routed with "root"
54 # just remember to delete public/index.html.
55 root :to => "portal#index"
57 # See how all your routes lay out with "rake routes"
59 # This is a legacy wild controller route that's not recommended for RESTful applications.
60 # Note: This route will make all actions in every controller accessible via GET requests.
61 # match ':controller(/:action(/:id(.:format)))'