im running a system with different namespaces, like this:
routes.rb
...
namespace :customer do
...
namespace :account do
...
end
end
namespace :worker do
...
namespace :account do
...
end
end
namespace :admin do
...
namespace :account do
...
end
end
-- My AccountController is located in /controllers/account/
When i try to navigate to the Dashboard using
customer_account_dashboard_path, my server raises "is not missing
constant Account" but ONLY in production mode. I guess the mod_phusion
is mixing something up, because it does not happen with class cache
disabled.
How do you setup routing so that it will always use the same
controller (/controllers/account) for each namespace (customer,
worker, admin) but still uses a routing like "/customer/account", not
"/account".
When i try to navigate to the Dashboard using
customer_account_dashboard_path, my server raises "is not missing
constant Account" but ONLY in production mode. I guess the mod_phusion
is mixing something up, because it does not happen with class cache
disabled.
How do you setup routing so that it will always use the same
controller (/controllers/account) for each namespace (customer,
worker, admin) but still uses a routing like "/customer/account", not
"/account".
So what's in those namespace :account blocks? What controllers are
involved?
My suspicion is not that passenger is messing things up but that you
have a problem that manifests itself only when all of your controllers
are loaded at the same time (e.g. if one file defined a module with
name X and another file tried to define a class with the same name X)