Namespaced routes

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs