Created
June 5, 2013 22:20
-
-
Save kineticac/5717810 to your computer and use it in GitHub Desktop.
If you render the same partial over and over again, you can make a nice helper so you don't have to be so verbose.
This file contains 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 row_divider | |
(render partial: 'shared/row_divider').html_safe | |
end |
This file contains 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
<%= row_divider %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment