Today I am observing a peculiar behavior in my rails app.
I have defined the following route in routes.rb
map.namespace :admin do |admin|
admin.resources :users
end
and when I use rake:routes, I see the following routes as expected:
admin_users GET /admin/users {:action => 'index, :controller => 'admin/users'}
....
....
which are perfectly namespaced both in terms of path_prefixes as well as name_prefixes.
I have the UsersController under app/controllers (not under app/controllers/admin), but somehow rails is picking up the UsersController under app/controllers instead of app/controllers/admin, is this a recent change in rails, where it falls back for the controller, when it doesn't find one?