X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=config%2Froutes.rb;h=eef2afceaad134039d2323ee16f3d5c219feee68;hb=HEAD;hp=61ff96b8c88d70e2e8baaeb961b06fb4fc5248e1;hpb=09cd438e77dd418b03b67e3e6a4b48ec95b72d1d;p=depot.git diff --git a/config/routes.rb b/config/routes.rb index 61ff96b..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,7 +39,7 @@ 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" @@ -42,4 +48,6 @@ ActionController::Routing::Routes.draw do |map| # 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