So I've created my first module by moving all of the administrative
functions of my CMS under an 'admin' directory. Having done so, when
I try and access my pages_controller.rb file in admin, I get
So I've created my first module by moving all of the administrative
functions of my CMS under an 'admin' directory. Having done so, when
I try and access my pages_controller.rb file in admin, I get
superclass mismatch for class PagesController
That happens when you first do
class X < Y
end
then
class X < Z
end
So for example if you've a top level pages controller and one in
admin, then the one in admin should be Admin::PagesController