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

On 13 Mar 2008, at 17:52, Ron wrote:

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

On Mar 13, 11:03 am, Frederick C. [email protected]