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
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
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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs