writing all rails application exceptions/errors to a model


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


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



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