RailsCasts
RailsCasts
Ryan Bates
#8 Layouts and content_for
3 minutes Posted Mar 21, 2007 at 12:00 am.
0:00
3:30
Download MP3
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.