I have a couple of namespaces which look identical, the only difference between the two are the names. So I have
namespace :narrow do
resources :posts
resources :comments
...
...
end
namespace :wide do
resources :posts
resources :comments
...
...
end
What I would like to do is have the same resources defined in each namespace without needing to make changes in two places when resources are added/removed/changed.
Is there any way to do this?
Isn’t this just a ruby file? couldn’t you do: