{% extends "sentry/partial/client_config/ruby_base.html" %} {% load i18n %} {% block inner %}

{% blocktrans with 'https://github.com/getsentry/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/getsentry/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/getsentry/raven-ruby' as link %}For more information on other uses of Raven with Ruby, please see the official documentation for raven-ruby.{% endblocktrans %}

{% endblock %}