# Routes and spacename

**URL:** <https://www.ruby-forum.com/t/routes-and-spacename/149137>\
**Category:** Rails\
**Created:** [September 21, 2008, 12:19pm UTC](https://www.ruby-forum.com/t/routes-and-spacename/149137 "2008-09-21T12:19:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pandabeer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ecd19e/32.png) [@pandabeer](https://www.ruby-forum.com/u/pandabeer)\
**Post date:** [September 21, 2008, 12:19pm UTC](https://www.ruby-forum.com/t/routes-and-spacename/149137/1 "2008-09-21T12:19:50Z")

</div>

Hello,

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  
end

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

Thanks for helping,

Panda
