search for: error_proc

Displaying 1 result from an estimated 1 matches for "error_proc".

Did you mean: err_rproc
2007 Apr 09
4
How do i switch off error wrapping for a specific field?
...wrapping off while using the FormHelper methods. As error_wrapping is a method in InstanceTag (and not of FormHelper), it is pretty hard to have a FormBuilder change its behaviour. One possibility is to define def initialize(object_name, object, template, options, proc) ActionView::Base.field_error_proc = lambda do |html_tag, instance| html_tag end super(object_name, object, template, options, proc) end which works, but i consider it an unclean solution (as it would change the error_proc for the wh...