Last active
November 7, 2016 14:37
-
-
Save mchelen/e4df571d4579007fea698a5a39b85846 to your computer and use it in GitHub Desktop.
ruby helper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= something do-%> | |
<h4>hello world</h4> | |
<% end -%> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="something"> | |
<h4>hello world</h4> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# something | |
module SomeHelper | |
def something(&block) | |
'<div class="something">' + capture(&block) + '</div>' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment