route, namespace and admin controllers

In your example with WEBrick /admin/news will look for a controller
at /app/controllers/news_controller.rb. Having the static "/admin"
does not affect where it looks for the controller. Your tests run
because they are relative to the path for the test. Your controller
value should be "admin/news" given your directory structure. I am not
sure how to construct a route that would contain a slash however.


nuno wrote: