HoptoadNotifier
每个控制器?我将通知程序配置为报告“Method not allowed”异常,例如,当使用GET而不是POST访问某个操作时,会引发此异常。
def rescue_action_in_public exception
if exception.is_a? ActionController::MethodNotAllowed
rescue_action_in_public_without_hoptoad exception
else
super exception
end
end