Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| msg = instance.error_message errors = msg.is_a?(Array) ? msg.join(" ") : msg "<span class=\"error_message\">#{errors}</span><span class=\"error_field\">#{html_tag}</span>" end
From the Design Piracy series on my blog: