search for: systemnotifier

Displaying 5 results from an estimated 5 matches for "systemnotifier".

Did you mean: system_notifier
2006 Feb 16
3
rescue_action_in_public question
...;404 displayed") render(:file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not Found") else logger.error("500 displayed") render(:file => "#{RAILS_ROOT}/public/500.html", :status => "500 Error") SystemNotifier.deliver_exception_notification(self, request, exception) end end It works great when the exception thrown is ActiveRecord::RecordNotFound. It calls rescue_action_in_public and logs everything as expected. If I ask it to send me an email about it, it does that too. But it is not worki...
2006 Jun 09
3
email when validation fails
Hi, Say I want to send an email to someone every time a validation fails in any model. What would be the best way of doing that? Thanks, Joe
2006 Nov 08
0
routing error does not get caught by rescue_action_in_public
...troller::RoutingError logger.warn("rendering 404 page") render(:file => "#{RAILS_ROOT}/public/404.html", :layout => ''layouts/application'', :status => "404 Not Found") #SystemNotifier.deliver_exception_notification( # self, request, exception) else logger.warn("rendering 500 page") render(:file => "#{RAILS_ROOT}/public/500.html", :layout => ''layouts/application'',...
2006 Mar 07
17
Handling Erros from AWDWR
...ionController::UnknownAction render(:file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not Found") else render(:file => "#{RAILS_ROOT}/public/500.html", :status => "500 Error") SystemNotifier.deliver_exception_notification( self, request, exception) end end end and copied the file...app/models/system_notifier.rb changing the first line ''pathname'' to the actual path to the base of my ruby application and then finally copied the file and folder fo...
2006 Jul 04
0
ActionController::UnknownAction hangs application
...:UnknownAction render( :file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not Found") else render( :file => "#{RAILS_ROOT}/public/500.html", :status => "500 Error") email = SystemNotifier.deliver_exception_notification( self, request, exception) end end If I change line 3 to when ActiveRecord::RecordNotFound everything works just fine. This suggests that the application is choking while comparing exception.class (which can be anything, I''ve tr...