Showing 3 videos tagged with layouts

Railscast - Episode 7: All About Layouts

00:06:54 railscasts.com
Everything you wanted to know about layouts: global layouts, controller layouts, shared layouts, dynamic layouts and action layouts. Yes, there really are that many ways to specify a layout.

Railscast - Episode 8: Layouts and content_for

00:03:30 railscasts.com
If you want to change something in the layout on a per-template basis, content_for is your answer! This allows templates to specify view code that can be placed anywhere in a layout.

Railscast - Episode 125: Dynamic Layouts

00:11:56 railscasts.com
Discover how to dynamically change the layout using content in the database. Check out this episode for details.