class method self.failsafe_response_body

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3 Private

Signature

self.failsafe_response_body(status)

No documentation comment.

Parameters

status req
Source
# File actionpack/lib/action_controller/dispatcher.rb, line 74
        def failsafe_response_body(status)
          error_path = "#{error_file_path}/#{status.to_s[0..3]}.html"

          if File.exist?(error_path)
            File.read(error_path)
          else
            "<html><body><h1>#{status}</h1></body></html>"
          end
        end

Defined in actionpack/lib/action_controller/dispatcher.rb line 74 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Dispatcher

Type at least 2 characters to search.

↑↓ navigate · open · esc close