Inline content_for blocks
From this:
<% content_for :foo do %>
<%= bar %>
<% end %>
To this:
<% content_for(:foo) { bar } %>
Written by Lee
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Related Tags
#rails
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#