Sha256: 8934804a615ce342894bfa1c022fc623ca5427f19c5509da95ac30ea3c1b0530
Contents?: true
Size: 670 Bytes
Versions: 19
Compression:
Stored size: 670 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 def spree_date_picker(method, options = {}, html_options = {}) @template.spree_date_picker(@object_name, method, options, html_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
19 entries across 19 versions & 6 rubygems