Actually, this is painless, although in a non-MVC sort of way.
I have a look for all my sub-pages, and a variation for the home page.
The pages controller can simply do its thing as normal, using the
default layout yada-yada-yada, but the home page has a custom layout,
and it knows that by the first line of my .thtml file:
<?php $this->layout="mainPage"; ?>
This also works for setting a page title for your static pages:
<?php $this->pageTitle="About Kathryn"; ?>
NOTE: THIS IS ***NOT*** the MVC way. I don''t want Gwoo, Nate or _Phpnut
himself yelling at me - it works but it''s not pure. Just my 0.02
Regards!
-Toby
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---