I don't know if you've encountered `locals` before, but [the section on partials in the Rails Guide on Layouts](http://guides.rubyonrails.org/layouts_and_rendering.html#using-partials) has some information about them. They can be really powerful when used properly.