Module: Spurs::Badge::Helper
- Defined in:
- lib/spurs/badge.rb
Instance Method Summary collapse
Instance Method Details
#spurs_badge(content, options = {}) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/spurs/badge.rb', line 4 def spurs_badge(content, ={}) class_str ="badge" if [:type] class_str.concat(" badge-#{[:type]}") end content_tag(:span,content.html_safe,:class => class_str) end |