Module: Bh::Form::SelectHelper

Includes:
BaseHelper
Defined in:
lib/bh/core_ext/rails/form/select_helper.rb

Instance Method Summary collapse

Methods included from Helpers

#alert_box, #bootstrap_css, #bootstrap_js, #bootstrap_theme_css, #button, #button_to, #dropdown, #font_awesome_css, #glyphicon, #horizontal, #icon, #link_to, #modal, #nav, #navbar, #panel, #panel_row, #progress_bar, #vertical

Instance Method Details

#select(method, choices = nil, options = {}, html_options = {}, &block) ⇒ Object



8
9
10
11
12
13
# File 'lib/bh/core_ext/rails/form/select_helper.rb', line 8

def select(method, choices = nil, options = {}, html_options = {}, &block)
  append_class! html_options, 'form-control'
  base_field method, :select, options do
    super method, choices, options, html_options, &block
  end
end