Location of sentry id in Rails? (Implementing User Feedback)

I’m following the User Feedback guide which is written for Django. It tests for the existence of this value:

{% if request.sentry.id %}

What’s the Rails equivalent? I can’t find a sentry property in the Rails request after an error has occurred.

It should be available as Raven.last_event_id, per the Ruby Usage. That is a thread-safe item as well.

1 Like