Module: Bh::Form::FieldHelper

Includes:
BaseHelper
Included in:
Bh::FormBuilder
Defined in:
lib/bh/helpers/form/field_helper.rb

Instance Method Summary collapse

Methods included from GlyphiconHelper

#glyphicon

Instance Method Details

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



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

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