【发布时间】:2015-03-04 21:59:17
【问题描述】:
我有一个 Rails 应用程序。在生产中,我的应用程序抛出路由错误,而不是呈现 404.html 或 500.html。为什么 Rails 会抛出错误而不是渲染 404 页面? (来自开发人员的输出,config.consider_all_requests_local = false)
Started GET "/asdfadsfdsaf" for 127.0.0.1 at 2015-03-04 16:51:12 -0500
ActionController::RoutingError (No route matches [GET] "/asdfadsfdsaf"):
...
【问题讨论】:
标签: ruby-on-rails ruby routes actioncontroller