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

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to