我有一个带有“PagesController”的Rails4应用程序. 当没有找到页面时,show-method将抛出一个自定义的异常“PageNotFoundError”. 在我定义的控制器的顶部 rescue_from PageNotFoundError,具有::render_not_found render not found是PagesController的私有方法,如下所示: def r
class A
def a_method
#..
end
end
class B < A
def method_1
# ...
a_method
end
def method_2
# ...
a_method
end
# ...
def method_n
# ...
a_method
end
en
我试图实现exception_notifier和一个自定义的异常处理 在我的rails 3应用程序当我只使用异常通知器一切正常. 在开发模式中 config.consider_all_requests_local = false 和一个rescue_from在我的application_controller中: unless Rails.application.config.consider_al