If you extend Page, make sure to mention the class name on its own line in the activate method of your extension. This will force Rails to load the class. In certain Rails modes (i.e. development, production, etc), the class will not be found otherwise.
Sean On 2/19/07, Daniel Sheppard <[EMAIL PROTECTED]> wrote: > I reference my page extensions during the load of the extension: > > http://soxbox.no-ip.org/radiant/svn/extensions/x_groggy/x_groggy_extensi > on.rb > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Jacob Burkhart > > Sent: Tuesday, 20 February 2007 4:35 AM > > To: [email protected] > > Subject: [Radiant] Defining new page types in an extension > > > > What's the best way to define new page types in an extension? > > > > I created some classes that extend StandardPage, but they > > aren't loaded. > > (Don't appear in the page type drop-down) > > > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > Radiant mailing list > > Post: [email protected] > > Search: http://radiantcms.org/mailing-list/search/ > > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > > > _______________________________________________ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
