Skip to content

Instantly share code, notes, and snippets.

@kenzie
Created September 12, 2011 23:47
Show Gist options
  • Save kenzie/1212791 to your computer and use it in GitHub Desktop.
Save kenzie/1212791 to your computer and use it in GitHub Desktop.
Rails 3 wrap field errors in spans
# wrap errors in span
config.action_view.field_error_proc = Proc.new { |html_tag, instance| "<span class=\"field_with_errors\">#{html_tag}</span>".html_safe }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment