Sha256: 0030083ddde5657942987a0c4203577593a595852372218457aef1eaa803a9bd

Contents?: true

Size: 521 Bytes

Versions: 204

Compression:

Stored size: 521 Bytes

Contents

#
# Allow some application_helper methods to be used in the scoped form_for manner
#
class ActionView::Helpers::FormBuilder
  def field_container(method, options = {}, &block)
    @template.field_container(@object_name,method,options,&block)
  end

  def error_message_on(method, options = {})
    @template.error_message_on(@object_name, method, objectify_options(options))
  end
end

ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| "<span class=\"field_with_errors\">#{html_tag}</span>".html_safe }

Version data entries

204 entries across 204 versions & 4 rubygems

Version Path
spree_backend-3.2.9 config/initializers/form_builder.rb
spree_backend-3.1.14 config/initializers/form_builder.rb
spree_backend-3.3.6 config/initializers/form_builder.rb
spree_backend-3.2.8 config/initializers/form_builder.rb
spree_backend-3.1.13 config/initializers/form_builder.rb
spree_backend-3.3.5 config/initializers/form_builder.rb
spree_backend-3.3.4 config/initializers/form_builder.rb
spree_backend-3.2.7 config/initializers/form_builder.rb
spree_backend-3.1.12 config/initializers/form_builder.rb
solidus_backend-1.2.3 config/initializers/form_builder.rb
solidus_backend-1.1.4 config/initializers/form_builder.rb
solidus_backend-1.0.7 config/initializers/form_builder.rb
spree_backend-3.3.3 config/initializers/form_builder.rb
spree_backend-3.2.6 config/initializers/form_builder.rb
spree_backend-3.1.11 config/initializers/form_builder.rb
spree_backend-3.1.10 config/initializers/form_builder.rb
spree_backend-3.3.2 config/initializers/form_builder.rb
spree_backend-3.2.5 config/initializers/form_builder.rb
spree_backend-3.1.9 config/initializers/form_builder.rb
spree_backend-3.3.1 config/initializers/form_builder.rb