Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Do not render file in layout as it already has a layout.

  • Loading branch information...
commit 3f90b043ce7d5a78138385514aeda3071993e5df 1 parent f3dc16c
Eric Anderson authored
2  app/controllers/better_exception_app/http_errors_controller.rb
@@ -18,7 +18,7 @@ def show
18 18 if error.template
19 19 # First try static template. Mainly for 500 Internal Server Error
20 20 # since we cannot be sure they can render in a layout.
21   - render error.template
  21 + render error.template, :layout => false
22 22 elsif error.description
23 23 # If static error doesn't exist try a i18n-based description
24 24 # within the layout.

0 comments on commit 3f90b04

Please sign in to comment.
Something went wrong with that request. Please try again.