class ActionDispatch::DebugExceptions
def routes_inspector(exception)
def routes_inspector(exception) if @routes_app.respond_to?(:routes) && (exception.routing_error? || exception.template_error?) ActionDispatch::Routing::RoutesInspector.new(@routes_app.routes.routes) end end