{% 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 "Create an instance of the client:" %}
require 'raven' Raven.configure do |config| config.dsn = '{% if dsn %}{{ dsn }}{% else %}SENTRY_DSN{% endif %}' end
{% trans "Now wrap your application to capture events:" %}
Raven.capture do MyApp.run end
{% 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 %}