Paul B. wrote:
You can set the layout as part of the render method, when you decide
.rhtml template to render
Yeah - that’s not exactly what I’m looking for - I want to decide what
layout to use in the .rhtml itself -
my controller defines no actions - so the behaviour is a file
is rendered when i hit
if the ContentController set’s layout like
class ContentController < ApplicationController
then app/views/layout/example_layout.rhtml is used as the layout.
calling ‘render’ in the file.rhtml has no effect.
I’ve had a good trawl of docs and src - without finding anything
obvious. So I’m just wondering if someone has come across a solution or
if someone with better knowledge of rails source knows of an approach.