Sha256: 6875c7007ddcc5b2fffaa90b374ff08328e7d107e4661a8d5a1fe13e57aa2209

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

require 'railsstrap/core_ext/rails/form/base_helper'

module Railsstrap
  module Form
    module FieldHelper
      include BaseHelper

      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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
railsstrap-4.0.0.beta3 lib/railsstrap/core_ext/rails/form/field_helper.rb
railsstrap-4.0.0.beta2 lib/railsstrap/core_ext/rails/form/field_helper.rb