Could someone tell me how you would set up default routes within a
namspace similar to this...
map.connect ':namespace/:controller/:action/:id'
I have tried several ways inside...
map.namespace :example_namespace do |a|
end
with no luck.
Thanks,
Chris
ESPNDev
(ESPNDev@gmail.com)
2
map.namespace(:admin) do |admin|
admin.resources :products,
:collection => { :inventory => :get },
:member => { :duplicate => :post },
:has_many => [ :tags, :images, :variants ]
end
http://www.railstips.org/2007/4/28/namespaces-added-to-routes