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