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
Chris Cowan
2009-Oct-31 15:57 UTC
Re: writing all rails application exceptions/errors to a model
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 <martagenisll-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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ís > > >-- Christopher Cowan "Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that''s creativity" -- Charls Mingus, Jazz Bassist --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Matt Jones
2009-Nov-01 15:09 UTC
Re: writing all rails application exceptions/errors to a model
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 On Oct 31, 10:41 am, cduv <martageni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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ís