{% extends "sentry/partial/client_config/ruby_base.html" %} {% load i18n %} {% block inner %}
{% trans "Configure the client and install the Rack middleware:" %}
require 'sinatra'
require 'raven'
Raven.configure do |config|
config.dsn = '{% if dsn %}{{ dsn }}{% else %}SENTRY_DSN{% endif %}'
end
use Raven::Rack
get '/' do
1 / 0
end
{% trans "That's it! Raven automatically installs an error handling hook to pipe all uncaught exceptions to Sentry." %}
{% endblock %}