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@googlegroups.com.
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.

Search Discussions

  • Frederick Cheung at Nov 16, 2011 at 4:54 pm

    On Nov 16, 12:00 pm, Rob 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@googlegroups.com.
    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedNov 16, '11 at 2:56p
activeNov 16, '11 at 4:54p
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Rob: 1 post Frederick Cheung: 1 post

People

Translate

site design / logo © 2022 Grokbase