Warren Konkel
2006-Feb-26 18:26 UTC
[Rails] rescue_action with RoutingError not loading ApplicationController/ApplicationHelper
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060226/38ea0caf/attachment.html