Flowdock
method

render_optional_error_file

Importance_1
v2.0.3 - Show latest stable - 0 notes - Class: ActionController::Rescue
render_optional_error_file(status_code) protected

Attempts to render a static error page based on the status_code thrown, or just return headers if no such file exists. For example, if a 500 error is being handled Rails will first attempt to render the file at public/500.html. If the file doesn’t exist, the body of the response will be left empty.

Show source
Register or log in to add new notes.