RailsCasts Pro episodes are now free!

Learn more or hide this

Layouts and content_for

#8 Layouts and content_for

Mar 21, 2007 | 3 minutes | Views
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.
  • Download:
  • mp4Full Size H.264 Video (5.9 MB)
  • m4vSmaller H.264 Video (3.9 MB)
  • webmFull Size VP8 Video (10.8 MB)
  • ogvFull Size Theora Video (6.63 MB)