Module: GlyphHelper
- Defined in:
- app/helpers/glyph_helper.rb
Instance Method Summary collapse
-
#glyph(*glyphicon_names) ⇒ Object
Examples.
Instance Method Details
#glyph(*glyphicon_names) ⇒ Object
Examples
glyph(:search)
=> <span class="glyphicon glyphicon-search"></span>
glyph(:search, :paperclip)
=> <span class="glyphicon glyphicon-search"></span><span class="glyphicon glyphicon-paperclip"></span>
9 10 11 12 13 |
# File 'app/helpers/glyph_helper.rb', line 9 def glyph(*glyphicon_names) safe_join(glyphicon_names.map do |name| content_tag :span, nil, class: "glyphicon glyphicon-#{name.to_s.parameterize}" end, "") end |