相关疑难解决方法(0)

如何在Rails中重定向到404?

我想在Rails中"伪造"一个404页面.在PHP中,我只是发送带有错误代码的标头:

header("HTTP/1.0 404 Not Found");
Run Code Online (Sandbox Code Playgroud)

如何用Rails完成?

ruby ruby-on-rails http http-status-code-404

474
推荐指数
6
解决办法
22万
查看次数

标签 统计

http ×1

http-status-code-404 ×1

ruby ×1

ruby-on-rails ×1