Getting started with Ruby on Rails error tracking

| 2 min. (321 words)

Following the release of the Ruby on Rails provider for Raygun, today I’ve got a screencast where I demo how to integrate it in a Rails application. This gives you automatic Rails error tracking in your web app. In the video I walk you through each step, but even so it takes less than 5 minutes!

Ruby, together with Rails, is one of the most popular ways to build modern web applications. In larger projects bugs and corner cases become harder to spot manually, and even harder to diagnose when picking through a huge code base. Raygun solves this problem as when a user encounters an error, it is automatically sent to your Raygun dashboard, complete with stack trace, request data, environment details and more.

We’re proud to bring the power of Raygun to the Ruby ecosystem, allowing you to add Rails error tracking quickly – check out the video for how easy it is.

How to add Rails error tracking

The provider, Raygun4ruby, comes as a gem, so you can add it by placing it in your Gemfile then running bundle. It includes a generator that automatically installs your API key (available from your Raygun dashboard once you sign up), and a rake command to send a test error once you’ve got it installed.

After that, any exception raised in your Rails app will be automatically sent to Raygun! Know exactly when your users run into broken functionality on your site. Fewer 500s means happier clients and happier users!

Grab the free trial now

As always, Raygun has a free 30-day trial so there’s no excuses! We’re always listening so if you have any questions or comments feel free to post them. We’re hard at work improving all aspects of the Raygun service, but we appreciate all suggestions- there’s a Feature Request page in the dashboard, and we invite you to post your ideas. Until next time, happy error blasting!