Skip to content

Instantly share code, notes, and snippets.

@rnaveiras
Created August 18, 2009 22:08
Show Gist options
  • Save rnaveiras/170014 to your computer and use it in GitHub Desktop.
Save rnaveiras/170014 to your computer and use it in GitHub Desktop.
# Use span in field_error_proc
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
"<span class=\"fieldWithErrors\">#{html_tag}</span>"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment