Forum: Ruby on Rails Layouts for static pages

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
David C. (Guest)
on 2006-02-26 23:48
(Received via mailing list)
Is there any "standard" way if I wish to use a layout with an otherwise
static
page?  Do I have to create a controller "and everything" for this to
work?

Thanks
David
Pat M. (Guest)
on 2006-02-26 23:54
(Received via mailing list)
For things like this I just usually use a "main" controller, then
create the .rhtml files for each page.  Then for performance you can
just cache the page.

As far as I know that's the easiest way, then you only have to keep
track of one layout file.  Plus a lot of the time you'll want some
dynamic content in the layout anyway.

Pat
This topic is locked and can not be replied to.