Last Updated: February 25, 2016
·
283
· geetotes

Inline content_for blocks

From this:

<% content_for :foo do %>
    <%= bar %>
<% end %>

To this:

<% content_for(:foo) { bar } %>