Is it possible to define a namespace parameter when defining my routes, like this:
resource :account, :namespace => :account do
resources :comments
end
So /account/comment calls Account::CommentsController instead of just CommentsController. Just as a note, the :namespace-option above does NOT seem to work.
I can of course just add :controller => 'account/comments' to the comments resources, but having a lot of nested resources, this is not very DRY.
Is there better way?
Thanks guys - you rock!