Skip to content

Instantly share code, notes, and snippets.

@kommen
Created August 20, 2008 07:58
Show Gist options
  • Save kommen/6336 to your computer and use it in GitHub Desktop.
Save kommen/6336 to your computer and use it in GitHub Desktop.
<% test_wrapping_helper do %>
some html
<% end %>
def test_wrapping_helper(&block)
concat("<div class=\"fuuu\">", block.binding)
yield
concat('</div>', block.binding)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment