This project is archived and is in readonly mode.

#2714 ✓duplicate
Hongli Lai

Failsafe middleware doesn't render 500.html as ERB

Reported by Hongli Lai | May 25th, 2009 @ 04:40 PM | in 2.x

500.html is actually an ERB template: it instructs the reader to read the appropriate log file to find out what went wrong, in case he's the administrator. This is good for usability because apparently a lot of people don't know that they're supposed to read the log file.

The Rescue middleware correctly renders 500.html as ERB, but the Failsafe middleware does not. This patch solves the problem, and also adds unit tests for Failsafe. It also makes the default static Failsafe response (which is returned in case ERB rendering fails as well) more friendly.

This patch is for Rails 2.3.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages