When creating a scaffold you get a layout file. How does it work? I thought I would find the var @content_for_layout in the controller, but I didn''t. Where is layouts defined or controlled? -- Posted via http://www.ruby-forum.com/.
On 7/7/06, P?l Bergstr?m <pal@palbergstrom.com> wrote:> When creating a scaffold you get a layout file. How does it work? I > thought I would find the var @content_for_layout in the controller, but > I didn''t. Where is layouts defined or controlled? >Does <http://api.rubyonrails.org/classes/ActionController/Layout/ClassMethods.html> answer your questions? Isak
Isak Hansen wrote:> On 7/7/06, P?l Bergstr?m <pal@palbergstrom.com> wrote: >> When creating a scaffold you get a layout file. How does it work? I >> thought I would find the var @content_for_layout in the controller, but >> I didn''t. Where is layouts defined or controlled? >> > > Does > <http://api.rubyonrails.org/classes/ActionController/Layout/ClassMethods.html> > answer your questions? > > > IsakSure does. Thanks :-) -- Posted via http://www.ruby-forum.com/.