The situation is simple. In Rails 2.3.3, I've got a "Staff" namespace, and controllers in there inherit from the StaffController. That StaffController itself handles the Staff namespace's root:
map.namespace :staff do |staff|
staff.root :controller=>'staff',
:action=>'index'
# ...
end
In development mode, that works fine. In production mode, however, this breaks:
uninitialized constant Staff::StaffController
among other issues, such as certain helpers rendering incorrectly in the Staff namespace.
Why do development and production mode act behave differently in this context, and what can I do to fix it?