1 Hello::Application.routes.draw do
2 # The priority is based upon order of creation: first created -> highest priority.
3 # See how all your routes lay out with "rake routes".
5 # You can have the root of your site routed with "root"
8 # Example of regular route:
9 # get 'products/:id' => 'catalog#view'
11 # Example of named route that can be invoked with purchase_url(id: product.id)
12 # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
14 # Example resource route (maps HTTP verbs to controller actions automatically):
17 # Example resource route with options:
18 # resources :products do
29 # Example resource route with sub-resources:
30 # resources :products do
31 # resources :comments, :sales
35 # Example resource route with more complex sub-resources:
36 # resources :products do
39 # get 'recent', on: :collection
43 # Example resource route with concerns:
44 # concern :toggleable do
47 # resources :posts, concerns: :toggleable
48 # resources :photos, concerns: :toggleable
50 # Example resource route within a namespace:
52 # # Directs /admin/products/* to Admin::ProductsController
53 # # (app/controllers/admin/products_controller.rb)