This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow 开发者_StackOverflow社区situation that
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow 开发者_StackOverflow社区situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I have a web app which has a global layout file (application.html.erb).
When I encounter a 404 or 500 error the corresponding error page is rendered inside the layout file.
I want to prevent this from happening and render outside the layout but I can't figure out where to put the render :layout => false call. Can anyone help?
Turns out I was using the super exeption notifier plugin which has built in supprt for rendering error templates.
精彩评论