Skip to content

Instantly share code, notes, and snippets.

@seyhunak
Created July 29, 2013 13:27
Show Gist options
  • Save seyhunak/6104303 to your computer and use it in GitHub Desktop.
Save seyhunak/6104303 to your computer and use it in GitHub Desktop.
Rails - Better Errors - Ajax
$(document)
.on("ajaxError", function(e, request, textStatus, errorThrown) {
window.open("/__better_errors", "error");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment