Guest User

Untitled

a guest
Jan 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. SimpleCms::Application.routes.draw do
  2.  
  3. root :to => "demo#index"
  4. # get "demo/index"
  5.  
  6.  
  7. # The priority is based upon order of creation:
  8. # first created -> highest priority.
  9.  
  10. # Sample of regular route:
  11. # match 'products/:id' => 'catalog#view'
  12. # Keep in mind you can assign values other than :controller and :action
  13.  
  14. # Sample of named route:
  15. # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
  16. # This route can be invoked with purchase_url(:id => product.id)
  17.  
  18. # Sample resource route (maps HTTP verbs to controller actions automatically):
  19. # resources :products
  20.  
  21. # Sample resource route with options:
  22. # resources :products do
  23. # member do
  24. # get 'short'
  25. # post 'toggle'
  26. # end
  27. #
  28. # collection do
  29. # get 'sold'
  30. # end
  31. # end
  32.  
  33. # Sample resource route with sub-resources:
  34. # resources :products do
  35. # resources :comments, :sales
  36. # resource :seller
  37. # end
  38.  
  39. # Sample resource route with more complex sub-resources
  40. # resources :products do
  41. # resources :comments
  42. # resources :sales do
  43. # get 'recent', :on => :collection
  44. # end
  45. # end
  46.  
  47. # Sample resource route within a namespace:
  48. # namespace :admin do
  49. # # Directs /admin/products/* to Admin::ProductsController
  50. # # (app/controllers/admin/products_controller.rb)
  51. # resources :products
  52. # end
  53.  
  54. # You can have the root of your site routed with "root"
  55. # just remember to delete public/index_bak.html.
  56. # root :to => "welcome#index"
  57.  
  58. # See how all your routes lay out with "rake routes"
  59.  
  60. # This is a legacy wild controller route that's not recommended for RESTful applications.
  61. # Note: This route will make all actions in every controller accessible via GET requests.
  62. match ':controller(/:action(/:id(.:format)))'
  63. end
Add Comment
Please, Sign In to add comment