Sha256: 46bb0544cf764a2a43cf9b92b7bf5eac3fd48961e5db2013962bb58aa9c9d5d4
Contents?: true
Size: 520 Bytes
Versions: 6
Compression:
Stored size: 520 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{ |html_tag, _instance| "<span class=\"field_with_errors\">#{html_tag}</span>".html_safe }
Version data entries
6 entries across 6 versions & 1 rubygems