Forum: Ruby on Rails rescue_action with RoutingError not loading ApplicationContr

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Warren Konkel (Guest)
on 2006-02-26 20:27
(Received via mailing list)
Why is it that when rescue_action is called with any exception except
for
RoutingError, "self" refers to a controller within my application, but
when
there's a RoutingError, "self" refers to an object of
ActionController::Base?  This makes some sense because a "RoutingError"
implies that no controller was found to process the request.  However, I
am
trying to render pages (rather than doing a redirect) from within
rescue_action and none of my application-wide helpers or my
application-wide
filters (defined in application.rb and application_helper.rb) are being
loaded/called/etc.

-Warren
This topic is locked and can not be replied to.