Jake Trent

Tag: Erb

Multiple Yields in an ERB Template

When you setup a new Rails project, you’ll have a single layout file which has a single default yield block. This will soon be inadequate, and you’ll want another. Here’s how to setup multiple yield blocks per ERB template.

Read more