Rack
Install Exceptional in your Rack app
-
Install the exceptional gem
$ gem install exceptional -
Install the json gem of your choice (choices are: json, json_pure, yajl-ruby, json-jruby)
$ gem install json -
Configure your config.ru file
require 'exceptional' use Rack::Exceptional, API_KEYYou will find the API_KEY in the apps settings screen within Exceptional.
-
Ensure Exceptional for Rack is being loaded
Check log/exceptional.log log file
Example config.ru
require 'exceptional'
use Rack::Exceptional, API_KEY
run lambda { |env| [200, {'Content-Type'=>'text/plain'}, "Hello World"]}