Must write ':controller => "/foo"' because of "admin/bar"

Hi all,

Because I place admin controllers in an “admin” subdirectory, I’m forced
to use absolute controller names/paths whole over my app.

=>
I can no longer write:

.. :controller => "foo"
.. :controller => :foo

or
… :controller => "admin/bar

I have to use instead :

.. :controller => "/foo"
.. :controller => "/admin/bar

Is there a way around this?
I miss the symbol notation, and it’s error prone (that’s what my
fingers’ keep telling me).

Alain

Btw, “assert_redirected_to” doesn’t work with/recognize the absolute
redirection:

Example:
The action:
jumpto = {:action => “home”, :controller => “/cga”}
redirect_to (jumpto)

requires you write the test this way
assert_redirected_to :controller => “cga”, :action => “index”

while the coherent/correct way would be :
assert_redirected_to :controller => “/cga”, :action => “index”

Alain