Created
February 10, 2017 12:27
-
-
Save reggieb/99a2ad17643e101786fc6bf46285139a to your computer and use it in GitHub Desktop.
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 glyphicon(name) | |
content_tag( | |
'span', '', class: "glyphicon glyphicon-#{name}", 'aria-hidden' => 'true' | |
) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add a bootstrap compatible glyphicon to the page:
Note, that you can use symbols or strings for single word glyphicon names, but symbols won't work for multi-word names because of the hyphens.