routes.rb 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Cimshq::Application.routes.draw do
  2. # The priority is based upon order of creation:
  3. # first created -> highest priority.
  4. # Sample of regular route:
  5. # match 'products/:id' => 'catalog#view'
  6. # Keep in mind you can assign values other than :controller and :action
  7. # Sample of named route:
  8. # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
  9. # This route can be invoked with purchase_url(:id => product.id)
  10. # Sample resource route (maps HTTP verbs to controller actions automatically):
  11. # resources :products
  12. # Sample resource route with options:
  13. # resources :products do
  14. # member do
  15. # get 'short'
  16. # post 'toggle'
  17. # end
  18. #
  19. # collection do
  20. # get 'sold'
  21. # end
  22. # end
  23. # Sample resource route with sub-resources:
  24. # resources :products do
  25. # resources :comments, :sales
  26. # resource :seller
  27. # end
  28. # Sample resource route with more complex sub-resources
  29. # resources :products do
  30. # resources :comments
  31. # resources :sales do
  32. # get 'recent', :on => :collection
  33. # end
  34. # end
  35. # Sample resource route within a namespace:
  36. # namespace :admin do
  37. # # Directs /admin/products/* to Admin::ProductsController
  38. # # (app/controllers/admin/products_controller.rb)
  39. # resources :products
  40. # end
  41. # You can have the root of your site routed with "root"
  42. # just remember to delete public/index.html.
  43. # root :to => 'welcome#index'
  44. # See how all your routes lay out with "rake routes"
  45. # This is a legacy wild controller route that's not recommended for RESTful applications.
  46. # Note: This route will make all actions in every controller accessible via GET requests.
  47. # match ':controller(/:action(/:id(.:format)))'
  48. end