#6
Dec 05, 2008

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.
如果你正在运行一个产品服务器,有一个好办法来记录所有发生的异常。在这个视频里教你怎样建立一个通知系统。

Bittorrent 种子下载 推荐使用 (18.6 MB, 8:57)
直接下载/Direct Download Link (18.6 MB, 8:57)
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"

添加留言:/Add your comment:

(SKIP THIS ONE)

(required)

(not shown)


(可以使用pastie或者gist添加代码) (use pastie or gist for code)

if you want to help:
required:
BT下载工具
Get Bittorrent Tool
VLC播放器
Get VLC Media Player