Rails-based website for local business
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

58 lines
1.7 KiB

  1. Aironeac::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