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