I'm writing a default application-wide rescue_action_in_public.
I'd like to do something special when the exception raised was a routing error. Inspecting in debugger, I get:
(rdb:1) p exception.class ActionController::RoutingError
Yet:
(rdb:1) p exception.kind_of?( ActionController::RoutingError ) NameError Exception: uninitialized constant ActionWebService::Dispatcher::ActionController::RoutingError
Huh? It's an ActionController::RoutingError, yet I have no such thing as an ActionController::RoutingError loaded in my runtime?
How the heck do I test an exception to see if it's the kind of exception that reports itself as ActionController::RoutingError?
Thanks for any advice.