static private Method

Dispatcher.failsafe_response_body(status)

There's no documentation for this item.

Source Code

# File action_controller/dispatcher.rb, line 52
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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.