This is how a common namespace looks like.
namespace :admin do
resources :posts
end
And it creates a named route like this one;
new_admin_post_path
Here's my question; how can I add a prefix (like "new" in this example) to a named route under namespace?
Let's say my route definition likes this one;
namespace :admin do
get 'post/new' => 'posts#new', as: 'post'
end
And it's creates a named route like;
admin_post_path
I want to add "new" prefix to this named route and make it look like new_admin_post_path
and I don't want to use resources
.