#6
Dec 05, 2008
0 comments
Exception Notifications-异常通知
If you’re running a production site, it’s a good idea to record all exceptions which occur. See how to set up a notification system which does that in this episode.
如果你正在运行一个产品服务器,有一个好办法来记录所有发生的异常。在这个视频里教你怎样建立一个通知系统。
gem install will_paginate git clone git://github.com/ryanb/exception_logger.git vendor/plugins/exception_logger script/generate exception_migration rake db:migrate # config/environments/development.rb config.action_controller.consider_all_requests_local = false # in controllers/application.rb include ExceptionLoggable private def local_request? false end # routes.rb map.connect "logged_exceptions/:action/:id", :controller => "logged_exceptions"

