Method: BMC::ButtonHelper#new_button

Defined in:
app/helpers/bmc/button_helper.rb

#new_button(url = url_for(action: :new), **options) ⇒ Object



61
62
63
64
65
66
67
68
69
# File 'app/helpers/bmc/button_helper.rb', line 61

def new_button(url = url_for(action: :new), **options)
  options = {
    :icon      => :plus,
    :action    => :new,
    :btn_style => :success,
  }.merge(options)

  bs_button(url, **options)
end