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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 PagesControllerThat 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.> Any thoughts as to what I''ve done wrong? > > Thanks! > > Ron > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks, Fred! I really appreciate the help--that makes it a lot clearer. Ron On Mar 13, 11:03 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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. > > > Any thoughts as to what I''ve done wrong? > > > Thanks! > > > Ron--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---