From: Paulo Schneider Date: 2007-03-17T03:13:54+09:00 Subject: Newbie question about ActionController (I suppose) behavior ------=_Part_43055_2316481.1174068832763 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I am pretty new at Ruby and, as such, I am full of questions and wonderments. The latest one, which I can't figure it out is this: how does the "layout" method works (in Ruby terms) in a typical Rails controller, such as this class MyController < ApplicationController layout("my_layout") end I am a bit clueless, but I thought it worked as the "layout" method is defined somewhere along the inheritance hierarchy (perhaps at ActionController:Base). However, when I try to replicate it by creating a method on ApplicationController and making a similar call (also outside of a method scope), it doesn't seem to work. Thanks, Paulo ------=_Part_43055_2316481.1174068832763--