I have an application with a frontend and admin backend. In both
sections there are controllers with the same name (e.g.
CampaignsController and Admin::CampaignsController). The front and
backend controllers have seperate authentification methods (for users
and admins). When a admin browses to admin -> campaigns they are
redirected to the frontend login screen as if they had browsed to the
frontend campaigns controller. The problem is solved when product.rb -
config.cache_classes is set to false OR when all the admin
controller names are prefixed with ‘Admin’ (e.g.
Admin::AdminCampaign). Is there any other way I can get around this?
has anyone else experienced this problem?