def badge(text, type: 'default', tag: 'span', **options)
      content_tag(tag, text, merge_predef_class("badge badge-#{type.to_s}", options))
    end
def badge(text, type: 'default', tag: 'span', **options)
      content_tag(tag, text, merge_predef_class("badge badge-#{type.to_s}", options))
    end
Public: Bootstrap badges.

 text    - String. badge text.
 type    - String. A string of success, warning, important, info or inverse
           ( default: 'default' )
 tag     - Symbol or String. Html tag of the badge. ( default: 'span' )
 options - Other options can be accepted by the tag specified.

 Examples

   b("I'm a badge")
   # => <span class="badge badge-default">I'm a badge</span>

   b("I'm a label", type: 'success')
   # => <span class="badge badge-success">I'm a badge</span>

   b("I'm a label", style: 'color: #999;')
   # => <span class="badge badge-default" style="color: #999;">
          I'm a badge
        </span>

 Returns the badge html.