{% extends "sentry/partial/client_config/ruby_base.html" %} {% load i18n %} {% block inner %}
{% trans "Add a config/initializers/raven.rb
containing:" %}
require 'raven' Raven.configure do |config| config.dsn = '{% if dsn %}{{ dsn }}{% else %}SENTRY_DSN{% endif %}' end
You'll want to ensure you've disabled anything that would prevent errors from being propagated to the Raven::Rack middleware, like ActionDispatch::ShowExceptions:
config.action_dispatch.show_exceptions = false # this is the default setting in production
{% trans "That's it! Raven automatically installs an error handling hook to pipe all uncaught exceptions to Sentry." %}
{% endblock %}