Module: Bh::Form::FieldHelper

Includes:
BaseHelper
Defined in:
lib/bh/core_ext/rails/form/field_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

#field(method, field_type, options = {}, &block) ⇒ Object



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

def field(method, field_type, options = {}, &block)
  options[:placeholder] ||= strip_tags(label method)
  append_class! options, 'form-control'
  base_field method, field_type, options, &block
end