module Bh::Form::FieldHelper

Public Instance Methods

field(method, field_type, options = {}, &block) click to toggle source
# 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