Permalink
Browse files

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

  • Loading branch information...
1 parent f3dc16c commit 3f90b043ce7d5a78138385514aeda3071993e5df @eric1234 committed Oct 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/better_exception_app/http_errors_controller.rb
View
2 app/controllers/better_exception_app/http_errors_controller.rb
@@ -18,7 +18,7 @@ def show
if error.template
# First try static template. Mainly for 500 Internal Server Error
# since we cannot be sure they can render in a layout.
- render error.template
+ render error.template, :layout => false
elsif error.description
# If static error doesn't exist try a i18n-based description
# within the layout.

0 comments on commit 3f90b04

Please sign in to comment.