Sha256: 6feae9a2e4c69b0016d50fe3f35bc8bec9c222b111d8832f766cce1137d0d8aa

Contents?: true

Size: 492 Bytes

Versions: 35

Compression:

Stored size: 492 Bytes

Contents

module Kithe::FormHelper
  # Just a convenience to do simple_form_for with the Kithe::FormBuilder
  #
  # Just simple_form_for with a `builder:` arg that defaults to
  # Kithe::FormBuilder.  This pattern is advised by simple_form:
  # https://github.com/plataformatec/simple_form#custom-form-builder
  def kithe_form_for(object, *args, &block)
    options = args.extract_options!
    options[:builder] ||= Kithe::FormBuilder

    simple_form_for(object, *(args << options), &block)
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
kithe-2.16.0 app/helpers/kithe/form_helper.rb
kithe-2.15.1 app/helpers/kithe/form_helper.rb
kithe-2.15.0 app/helpers/kithe/form_helper.rb
kithe-2.14.0 app/helpers/kithe/form_helper.rb
kithe-2.13.0 app/helpers/kithe/form_helper.rb
kithe-2.12.0 app/helpers/kithe/form_helper.rb
kithe-2.11.0 app/helpers/kithe/form_helper.rb
kithe-2.10.0 app/helpers/kithe/form_helper.rb
kithe-2.9.1 app/helpers/kithe/form_helper.rb
kithe-2.9.0 app/helpers/kithe/form_helper.rb
kithe-2.8.0 app/helpers/kithe/form_helper.rb
kithe-2.7.1 app/helpers/kithe/form_helper.rb
kithe-2.7.0 app/helpers/kithe/form_helper.rb
kithe-2.6.1 app/helpers/kithe/form_helper.rb
kithe-2.6.0 app/helpers/kithe/form_helper.rb
kithe-2.5.0 app/helpers/kithe/form_helper.rb
kithe-2.4.0 app/helpers/kithe/form_helper.rb
kithe-2.3.0 app/helpers/kithe/form_helper.rb
kithe-2.2.0 app/helpers/kithe/form_helper.rb
kithe-2.1.0 app/helpers/kithe/form_helper.rb