Basis of rails-driven app 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.

49 lines
2.0 KiB

  1. ActionController::Routing::Routes.draw do |map|
  2. map.resources :loads
  3. map.resources :employees
  4. map.resources :people
  5. # The priority is based upon order of creation: first created -> highest priority.
  6. # Sample of regular route:
  7. # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  8. # Keep in mind you can assign values other than :controller and :action
  9. # Sample of named route:
  10. # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
  11. # This route can be invoked with purchase_url(:id => product.id)
  12. # Sample resource route (maps HTTP verbs to controller actions automatically):
  13. # map.resources :products
  14. # Sample resource route with options:
  15. # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
  16. # Sample resource route with sub-resources:
  17. # map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
  18. # Sample resource route with more complex sub-resources
  19. # map.resources :products do |products|
  20. # products.resources :comments
  21. # products.resources :sales, :collection => { :recent => :get }
  22. # end
  23. # Sample resource route within a namespace:
  24. # map.namespace :admin do |admin|
  25. # # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
  26. # admin.resources :products
  27. # end
  28. # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
  29. # map.root :controller => "welcome"
  30. # See how all your routes lay out with "rake routes"
  31. # Install the default routes as the lowest priority.
  32. # Note: These default routes make all actions in every controller accessible via GET requests. You should
  33. # consider removing the them or commenting them out if you're using named routes and resources.
  34. map.connect ':controller/:action/:id'
  35. map.connect ':controller/:action/:id.:format'
  36. end