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