RailsCasts
Ryan Bates
Add to My Podcasts
Episodes
About
Reviews
Charts
Promote
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.
Listen Instead
Switch to Audio
Refresh video
Previous
#7 All About Layouts
Next
#9 Filtering Sensitive Logs
← See all 346 episodes of RailsCasts
Privacy Manager