Halaman

Minggu, 14 November 2010

[shared] rails exception logger

https://github.com/defunkt/exception_logger

installation:
- ruby script/generate exception_migration
- rake db:migrate
- in application_controller.rb add
include ExceptionLoggable
rescue_from Exception, :with => :exception_handler

private

def exception_handler exception
log_exception exception
render "/500.html"
end


the default controller and view using prototype.js instead of jquery so i created my own controller view under admin namespace. the database pretty simple and similar to rails exception notification

for rails 3:
https://github.com/QuBiT/exception_logger

1 komentar:

  1. You can be sure to|make positive to|remember to} find slots with nice graphics and loads of dynamic options that can run easily, whether it’s a desktop, iPhone or cell gadget that you’re using. When you play on-line slots for actual cash, you'll want to be reassured that your cash is in good hands. You can rely on our suggestions being licensed by the related 바카라사이트 gaming authorities, and guaranteeing a good game using random quantity generators to place out those successful combinations on the reels.

    BalasHapus