Re: CSS issue with div fieldWithErrors

Fernando Perez
Thu, 01 Oct 2009 09:31:02 -0000

Ok I found a fix: put that in an initializer:

ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
  "<span
class=\"fieldWithErrors\">#{html_tag}"
end