Created
April 1, 2016 18:35
-
-
Save CodingItWrong/6c8d86c450c28e149f09f59301f1b128 to your computer and use it in GitHub Desktop.
Render With Block
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
| def render_with_block(partial) | |
| render partial, yielded: capture { yield } | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment