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

On Sat, Oct 31, 2009 at 8:41 AM, cduv [email protected] wrote:

Genís


Christopher Cowan

“Making the simple complicated is commonplace; making the complicated
simple, awesomely simple, that’s creativity”
– Charls Mingus, Jazz Bassist

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 J.

On Oct 31, 10:41 am, cduv [email protected] wrote:

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