search for: rescue_action_without_handler

Displaying 3 results from an estimated 3 matches for "rescue_action_without_handler".

2009 Feb 04
2
rendering error page for "Unauthorized" from before_filter
...into the public/ directory of the rails app. However, instead of this static html file I see the "Unauthorized!" text being rendered. I also went into the rails source and tweaked the rescue module a bit so that I surely get the ''public'' view of the exception: def rescue_action_without_handler(exception) (...) if false && (consider_all_requests_local || local_request?) # here rescue_action_locally(exception) else rescue_action_in_public(exception) end (...) That did not change anything, either. Am I not doing the proper t...
2010 Aug 09
0
Exceptions in functional tests (rescue_action_in_public! broken?)
...ns now defaults to false, meaning the ShowExceptions middleware is not used at all in the test environment -- i.e. there''s no way exceptions could be caught. http://github.com/rails/rails/commit/d898a4ba425a201827f07a5bb11c8c6bf85159b8 b) ActionController::TestCase::RaiseActionExceptions#rescue_action_without_handler never gets called, because it''s not overriding anything anymore -- i.e. there''s no way exceptions could be reraised in the rescue_action_in_public! case. What''s the deal here? I prefer to be able to use assert_response consistently in functional tests, rather than having...
2010 May 06
0
Problems using exception_notification 2.3.3.0
.../exception_notification/notifiable.rb:64:in `notify_about_exception'' /var/lib/gems/1.8/gems/exception_notification-2.3.3.0/lib/exception_notification/notifiable.rb:49:in `rescue_action_locally'' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:152:in `rescue_action_without_handler'' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:74:in `rescue_action'' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in `send'' /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in `pro...