{% load i18n %}

{% blocktrans with 'https://github.com/coderanger/raven-ruby' as link %}Start by installing raven-ruby:{% endblocktrans %}

gem install sentry-raven

{% trans "Or add it to your Gemfile:" %}

gem "sentry-raven", :git => "https://github.com/coderanger/raven-ruby.git"

{% trans "Add a config/initializers/raven.rb containing:" %}

require 'raven'

Raven.configure do |config|
  config.dsn = '{% if dsn %}{{ dsn }}{% else %}SENTRY_DSN{% endif %}'
end

{% trans "That's it! Raven automatically installs an error handling hook to pipe all uncaught exceptions to Sentry." %}

{% blocktrans with 'https://github.com/coderanger/raven-ruby' as link %}For more information on other uses of Raven with Ruby, please see the official documentation for raven-ruby.{% endblocktrans %}