A layout for each action

Marcelo Junior :

How I make for using a layout for each action in a controller:

examplo

def show    layout 'show'    bla bla bla bla end

def list    layout 'list'    bla bla bla bla end

not tested :slight_smile:

class FooController < ApplicationController   layout :action_name   ... end

but if each action has a layout, why not putting each layout html code in the action's associated view ?

   -- Jean-François.