阅读背景:

如何渲染rails静态404,500错误页面没有站点布局?

来源:互联网 

I'm using rails 3. In production rails nicely handles exceptions and loads my static 404.html, 500.html etc files from my public directory. However, it loads these files into my layouts/application.html.erb file. I am looking for a way to instruct rails to load these files WITHOUT using my application layout - e.g. just serve the static html file and nothing else. What is the best way to accomplish this? I'm using rails 3. In production rails nicely h




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: