Routes and spacename


I have some ressources such as “systems”, “tags”, “categories”, and I
would like to customize them path by adding just before a directory like
‘admin/’. In order to do that, I had editing my routes.rb file with:

map.namespace ‘admin’ do |admin|
admin.resource :system
admin.resources :tags
admin.resources :categories

But that’s not okay because, as you can see (after my rake routes
command), Rails consider as a controller “admin/systems” instead of

Thanks for helping,