Xhr Error Catching
February 7th, 2008
One of the more common questions I see from new rails developers is "Clicking an ajax link doesnt do anything." Most web developers use the web developer toolbar extension for firefox (Here). Even then its easy to miss the error message that pops up in console.
I created a simple plugin which will check to see if you made an xhr request, if so it will render the error to a file then bring up a javascript confirm box asking if you want to see the error.
Should be a drop in replacement for rails 2.0.2 and 1.2.6.
script/plugin install http://tangofoxtrot.com/svn/plugins/xhr_rescue_handler
This is my first plugin so please feel free to tear it apart.