Skip to content

Instantly share code, notes, and snippets.

@avit
Forked from dmtgtk/gist:1257146
Created October 2, 2011 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avit/1257160 to your computer and use it in GitHub Desktop.
Save avit/1257160 to your computer and use it in GitHub Desktop.
def helper(&block)
content_tag(:div, &block)
end
# or ...
def helper(&block)
%(<div>
#{yield}
</div>}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment