【发布时间】:2013-02-15 18:48:14
【问题描述】:
在我的 rails2.3.11 app/controllers/application_controller.rb 我有这个
ActionDispatch::ShowExceptions::rescue_responses["ActionController::RoutingError"] = :not_found
现在 rails-3.2.11 已弃用此功能,我正在获取此服务器日志
DEPRECATION WARNING: ActionDispatch::ShowExceptions.rescue_responses is deprecated. Please configure your exceptions using a railtie or in your application config instead. (called from ApplicationController at /home/mbussey/demo/app/controllers/application_controller.rb:31)
可能是我的问题重复了,但我需要有关如何在 rails3.2.11 中设置 ActionDispatch::ShowExceptions::rescue_responses 的具体帮助,因此我无法收到已弃用的警告。
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.1 ruby-on-rails-3.2 ruby-on-rails-2