Module: IconHelper
- Defined in:
- app/helpers/icon_helper.rb
Instance Method Summary collapse
-
#bs_icon(icon) ⇒ Object
Takes an icon class from bootstrap see bootstrap icons Just feed the method the name, except all the ‘glyphicon glyphicon-’ stuff.
Instance Method Details
#bs_icon(icon) ⇒ Object
Takes an icon class from bootstrap see bootstrap icons Just feed the method the name, except all the ‘glyphicon glyphicon-’ stuff
5 6 7 8 |
# File 'app/helpers/icon_helper.rb', line 5 def bs_icon(icon) markup = content_tag :span, class: "glyphicon glyphicon-#{icon}" do "" end markup.html_safe end |