<div dir="ltr">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.<div>
<br></div><div><div>Google digging yielded a few solutions (below), but wondering if anyone has come across other solutions.</div><div><br></div><div>Cheers,</div><div>Alex</div><div><br></div><div><br></div><div><a href="http://devblog.pipelinedeals.com/pipelinedeals-dev-blog/2012/2/12/javascript-error-reporting-for-fun-and-profit-1.html">http://devblog.pipelinedeals.com/pipelinedeals-dev-blog/2012/2/12/javascript-error-reporting-for-fun-and-profit-1.html</a><br>
</div><div><a href="http://jslogger.com/">http://jslogger.com/</a><br></div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Jul 18, 2013 at 1:56 PM, David Salgado <span dir="ltr"><<a href="mailto:david@digitalronin.com" target="_blank">david@digitalronin.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="im"><br><div class="gmail_quote">On 18 July 2013 13:10, Frederick Cheung <span dir="ltr"><<a href="mailto:frederick.cheung@gmail.com" target="_blank">frederick.cheung@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">There's still a slightly awkward feeling when I want to pass a larger chunk of data to the javascript. I normally end up with a inline javascript snippet setting window.foo but I've never felt very happy about that.</blockquote>
</div><div class="gmail_extra"><br></div></div>I use gon for that;</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="https://github.com/gazay/gon" target="_blank">https://github.com/gazay/gon</a><br>
</div><div class="gmail_extra">
<br></div><div class="gmail_extra">Also mentioned here;</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://railscasts.com/episodes/324-passing-data-to-javascript" target="_blank">http://railscasts.com/episodes/324-passing-data-to-javascript</a></div>
<div class="gmail_extra"><br></div><div class="gmail_extra">It's doing the same thing under the hood, but it's a nice encapsulation.</div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra"><br></div>
<div class="gmail_extra">David</div><div class="gmail_extra">
<br></div><div class="gmail_extra"><br><br></div></font></span></div>
<br>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div><br></div>