Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.31 kb
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
is_label_tag = html_tag =~ /<label/
if !is_label_tag
%(<span class="field-with-error">#{html_tag}</span><span class="validation-error">&nbsp;
#{instance.error_message.join(",")}</span>).html_safe
else
html_tag
end
end
Jump to Line
Something went wrong with that request. Please try again.