Showing 1 videos tagged with content_for

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.