error_messages_for (Merb::Helpers::Form::Builder::Errorifier)

    # File lib/merb-helpers/form/builder.rb, line 389
        def error_messages_for(obj, error_class, build_li, header, before)
          obj ||= @obj
          return "" unless obj.respond_to?(:errors)

          sequel = !obj.errors.respond_to?(:each)
          errors = sequel ? obj.errors.full_messages : obj.errors

          return "" if errors.empty?

          header_message = header % [errors.size, errors.size == 1 ? "" : "s"]
          markup = %Q{<div class='#{error_class}'>#{header_message}<ul>}
          errors.each {|err| markup << (build_li % (sequel ? err : err.join(" ")))}
          markup << %Q{</ul></div>}
        end