Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

sunny/raise_js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Raise JavaScript errors as Ruby exceptions in your Rails app

Resources

License

Stars

Watchers

Forks

Packages

No packages published