1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

Ruby on Rails: Layouts and content_for

  1. Clicks today:
    0
  2. Clicks this month:
    1
  3. Overall rating:
    4.50/5

Ruby on Rails » Refactoring — about 9 years ago
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.

Comments

Your Comment

You must be logged in to post a comment.