# The idea is to add random parameters in front of the path but still use controllers from the admin namespace not "some random path prefix" namespace
map.namespace :admin, :path_prefix => 'admin/:something' do |admin|
admin.connect 'asd/:id', :controller => 'items', :action => 'edit', :id => /\d+/
end
rake routes
/admin/:something/asd/:id {:controller=>"admin/:something/items", :action=>"edit"}
# notice the :controller => "admin/:something/items".
# accessing /admin/10/asd/2 responds with:
# NameError in Admin/:something/itemsController#edit
# "Admin:::something::ItemsController" is not a valid constant name!
# I may be wrong to expect this to work, but an easy fix seems to be: