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.

In production mode, the stock 404.html and 500.html don't get rendered

#4445

To reproduce, generate a clean app off 3.0.0.beta3:

$ rails testapp
$ cd testapp/
$ rails server -e production

Then, navigate to http://localhost:3000/junk. I expect the white background/red text of public/404.html, but instead action_dispatch/middleware/templates/rescues/routing_error.erb gets rendered. Combine this problem with #4444 Can no longer rescue_from ActionController::RoutingError, and there's no clean way to have custom 404 pages.

Reported by Luigi Montanez · April 20th, 2010 @ 04:59 PM

State: invalid
Milestone: none
Assigned to: Ryan Bigg Ryan Bigg
Importance: none

Activity

  1. Dan Pickett
    Dan Pickett
    • Assigned user set to Ryan Bigg

    -1

    it looks like you made these requests locally. By default, Rails will not serve the static error pages for local requests.

    You can try two things:

    If you access your actual network ip (ie 192.168.x.x) and your nonexistent path you should see the expected 404 page

    If you attempt to hit your missing path on your server from another system on your network you should see the expected 404 page

    April 21st, 2010 @ 01:34 AM

  2. Ryan Bigg
    Ryan Bigg
    • State changed from new to invalid

    Correct, it detects a local_request? and will serve the familiar stacktrace pages.

    April 21st, 2010 @ 01:39 AM