Hi, 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". Thank you -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Nov 16, 12:00 pm, Rob <rowa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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) Fred> Thank you-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.