def render(statuses, elapsed_time) #:nodoc:
        fail = statuses.all?{|s| s.success?}
        headers = {
          "Content-Type" => "text/plain; charset=utf8",
          "Cache-Control" => "no-cache",
          "Date" => Time.now.httpdate,
        }
        
        messages = []
        statuses.each do |status|
          status.messages.each do |m|
            messages << "#{m.ok? ? 'OK:  ' : 'FAIL:'} #{status.name} - #{m.message} (#{status.time ? sprintf('%0.000f', status.time * 1000) : '?'}ms)"
          end
        end
        
        info = []
        info << "Host: #{@hostname}" unless @hostname.size == 0
        info << "PID:  #{$$}"
        info << "Timestamp: #{Time.now.iso8601}"
        info << "Elapsed Time: #{(elapsed_time * 1000).round}ms"
        
        code = (fail ? 200 : 500)
        
        [code, headers, [info.join("\n"), "\n\n", messages.join("\n")]]
      end
def render(statuses, elapsed_time) 
        fail = statuses.all?{|s| s.success?}
        headers = {
          "Content-Type" => "text/plain; charset=utf8",
          "Cache-Control" => "no-cache",
          "Date" => Time.now.httpdate,
        }
        
        messages = []
        statuses.each do |status|
          status.messages.each do |m|
            messages << "
          end
        end
        
        info = []
        info << "Host: 
        info << "PID:  
        info << "Timestamp: 
        info << "Elapsed Time: 
        
        code = (fail ? 200 : 500)
        
        [code, headers, [info.join("\n"), "\n\n", messages.join("\n")]]
      end
def render ( statuses , elapsed_time ) #:nodoc: fail = statuses . all? { | s | s . success? } headers = { "Content-Type" => "text/plain; charset=utf8" , "Cache-Control" => "no-cache" , "Date" => Time . now . httpdate , } messages = [ ] statuses . each do | status | status . messages . each do | m | messages << "#{m.ok? ? 'OK:  ' : 'FAIL:'} #{status.name} - #{m.message} (#{status.time ? sprintf('%0.000f', status.time * 1000) : '?'}ms)" end end info = [ ] info << "Host: #{@hostname}" unless @hostname . size == 0 info << "PID:  #{$$}" info << "Timestamp: #{Time.now.iso8601}" info << "Elapsed Time: #{(elapsed_time * 1000).round}ms" code = ( fail ? 200 : 500 ) [ code , headers , [ info . join ( "\n" ) , "\n\n" , messages . join ( "\n" ) ] ] end
Output the plain text response from calling all the filters.
Output the plain text response from calling all the filters .