writing all rails application exceptions/errors to a model

Hi,

I will like to trap all application exceptions to a model. Can someone give me some approach to do this task?

The idea is to know in a model log what exceptions and errors my app is having.

Thanks in advance

Genís

I think this should do what you’re looking for:

http://e-haitham.blogspot.com/2008/06/rails-exception-handling-has-never-been.html

Chris

Not specifically what you're looking for, but have you looked at Hoptoad? It's a pretty handy way to track exceptions in production, and involves a lot less work than trying to roll up your own.

--Matt Jones