Project

raise_js

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Raise JavaScript errors as Ruby exceptions in your Rails app. Usefull when you have a good Exception catcher.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

RaiseJs

Raise JavaScript errors as Ruby exceptions in your Rails app.

Install

Add these lines to your Gemfile:

# Raise JavaScript errors as Ruby exceptions
gem "raise_js"

And add raise_js to your Gemfile along with jquery and jquery_ujs:

//= require raise_js
//= require jquery
//= require jquery_ujs

Catching

Use a gem like exception_notification to send you an email whenever Rails raises exceptions.

If you want to catch it manually, you can catch RaiseJs::JavaScriptError.