I know I can use a namespace on the map passed into the block for
ActionController::Routing::Routes.draw because I’ve done that with
some Admin:: controllers.
What I want to do is something similar with controllers for resources
that belong to another resource.
Is it possible to do something like this:
map.resources :shops do |shop|
shop.namespace |goods| do
so that I can have URLs like
and controllers like
I had a go at this but it doesn’t seem to work - and I thought I’d ask
whether it was possible before I waste too much time on it.