Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Failsafe middleware doesn't render 500.html as ERB

#2714

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.

Reported by Hongli Lai · May 25th, 2009 @ 04:40 PM

State: duplicate
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Hongli Lai
    Hongli Lai

    Please close this issue. It's a duplicate of #2715 Failsafe middleware doesn't render 500.html as ERB. My Internet connection was flaky.

    May 25th, 2009 @ 04:42 PM

  2. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from new to duplicate

    May 25th, 2009 @ 05:01 PM