[LRUG] Best practices for javascript in Rails apps

Alexander Hockey-Sweeney alexsween at gmail.com
Thu Jul 18 08:17:37 PDT 2013


Awesome, I will check those out. Thank you.

FWIW, to catch errors in our staging environment, we threw together a quick
solution using information from [1] and [2] to catch errors and a custom
rails controller to deliver the errors using the exception_notifier gem
[3]. By the sounds of it, noise is going to be an issue, but we figured
we'd give it a go.


Cheers,

Alex


[1]
http://devblog.pipelinedeals.com/pipelinedeals-dev-blog/2012/2/12/javascript-error-reporting-for-fun-and-profit-1.html
[2] (for catching angular errors)
http://stackoverflow.com/questions/13595469/how-to-override-exceptionhandler-implementation
[3] http://smartinez87.github.io/exception_notification/


On Thu, Jul 18, 2013 at 2:41 PM, Jonathan del Strother <
maillist at steelskies.com> wrote:

> > On 18 Jul 2013, at 14:14, Alexander Hockey-Sweeney <alexsween at gmail.com>
> wrote:
> >
> >> On a related note to javascript within Rails apps - does anyone have
> any tips for reporting javascript errors (with a Rails app)? Something
> similar to the rails exception_notification gem, but for javascript.
>
> Paul Irish had a post collecting a bunch of them
> (https://plus.google.com/+PaulIrish/posts/12BVL5exFJn) with some
> useful bits in the comments.
> I don't love any of the ones I've tried, though - there's a lot of
> noise from errors that I can't reproduce / locate, which is
> frustrating.
>
> At the moment I'm using Muscula.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20130718/5807af92/attachment-0003.html>


More information about the Chat mailing list