How does layouts work?

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?

On 7/7/06, PÃ¥l Bergström [email protected] 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 H. wrote:

On 7/7/06, PÃ¥l Bergström [email protected] 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

Sure does. Thanks :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs