The following results in LocalJumpError (no blocks are set to exit)
In the assistant:
def yield_wrapper yield end
In view:
<%= yield_wrapper %>
How would this happen? I want to use it with sublayers along the lines:
<%= content_for?(:content) ? yield(:content) : yield %>
And I thought it would be better to name a helper method, for example:
<%= special_yield(:content) %>
source share