What is a superclass mismatch?

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

Any thoughts as to what I've done wrong?

Thanks!

Ron

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

Fred.

Thanks, Fred! I really appreciate the help--that makes it a lot clearer.

Ron