RailsCasts
Ryan Bates
Add to My Podcasts
Episodes
About
Reviews
Charts
Promote
#8 Layouts and content_for
3 minutes
Posted Mar 21, 2007 at 12:00 am.
0:00
3:30
Add to My Queue
Download
MP3
Share
episode
Share at current time
Show notes
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.
Watch Video
Previous
#7 All About Layouts
Next
#9 Filtering Sensitive Logs
← See all 346 episodes of RailsCasts
Privacy Manager