开发者

Prevent rails 404, 500 pages from rendering inside layout [closed]

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜