I've been having trouble getting a controller in a namespace with the same name as a controller in the root namespace. A simplified version of the code:
/editions shows the EditionsController#index action, but /organizer/editions shows the same EditionsController#index action. Rails does not seem to recognize the namespace in this url.
This might well be a bug in Rails, we have some similar trouble running the specs in some situations. But this example does work well in Mongrel on our local machines.
Litespeed consistently routes the namespaced url to the root controller. Do you have any idea what could be the cause of this problem?
Code:
ActionController::Routing::Routes.draw do |map|
map.resources :editions
map.namespace :organizer do |organizer|
organizer.resources :editions
end
end
class EditionsController < ApplicationController
def index
end
end
class Organizer::EditionsController < ApplicationController
def index
end
end
This might well be a bug in Rails, we have some similar trouble running the specs in some situations. But this example does work well in Mongrel on our local machines.
Litespeed consistently routes the namespaced url to the root controller. Do you have any idea what could be the cause of this problem?