Hi,
Is there a way to use namespaces inside nested resources? For example,
I have:
resources :users do
resources :tags
end
and I’d like to place the tags controller inside controllers/users,
with the equivalent for templates.
If I try this:
resources :users do
namespace :users do
resources :tags
end
end
I’ll get redundant route names:
users_user_tags, users_user_utag, etc
This doesn’t work either:
resources :users do
resources :tags, :module => :users
end
And yet, nested resources seem like a good candidate to use
namespaces, to better organize files and avoid name conflicts.
Thanks,
–
Adriano