X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=config%2Froutes.rb;h=eef2afceaad134039d2323ee16f3d5c219feee68;hb=HEAD;hp=fa21f855db5b2d976b9d48c710d49920483c4bf2;hpb=e580d4626176c8deb6f44fec7e66f980b5923b29;p=depot.git diff --git a/config/routes.rb b/config/routes.rb index fa21f85..eef2afc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,10 @@ ActionController::Routing::Routes.draw do |map| + map.resources :users + + map.resources :line_items + + map.resources :orders + map.resources :products # The priority is based upon order of creation: first created -> highest priority. @@ -33,11 +39,15 @@ ActionController::Routing::Routes.draw do |map| # end # You can have the root of your site routed with map.root -- just remember to delete public/index.html. - # map.root :controller => "welcome" + map.root :controller => "store" # See how all your routes lay out with "rake routes" # Install the default routes as the lowest priority. + # Note: These default routes make all actions in every controller accessible via GET requests. You should + # consider removing the them or commenting them out if you're using named routes and resources. map.connect ':controller/:action/:id' map.connect ':controller/:action/:id.:format' + +# map.connect '', :controller => "store" end