All pastes #835189 Raw Edit

Stuff

public text v1 · immutable
#835189 ·published 2007-12-28 19:05 UTC
rendered paste body
ActionView::Base.field_error_proc = Proc.new do |html, instance|
  unless html =~ /type\s*=\s*['"]hidden['"]|<\s*label/
    %{<div class="error-with-field">#{html} <small class="error">&bull; #{[instance.error_message].flatten.first}</small></div>}
  else
    html
  end
end