seyhunak/twitter-bootstrap-rails — pull request #375 by kuboon (2012-09-18 12:31:33+00:00)
Title: GlyphHelper

# ==== Examples
# glyph(:share_alt)
# # =>
# glyph(:lock, :white)
# # =>

def glyph(*names)
content_tag :i, nil, class: names.map{|name| "icon-#{name.to_s.gsub('_','-')}" }
end