module Golden::Theme::Bootstrap::ButtonHelper

Public Instance Methods

bootstrap_btn_group(tag = :div, options = {}) { |buttons| ... } click to toggle source
# File lib/golden/theme/bootstrap/button_helper.rb, line 3
def bootstrap_btn_group tag = :div, options = {}
  buttons = []
  yield buttons if block_given?
  text = buttons.join('').html_safe
  options = {
    class: 'btn-group'
  }.deep_merge options
  content_tag tag, text, options
end