Ask A Question

Notifications

You’re not receiving notifications from this thread.

Devise and Hotwire

Leonardo Barroeta asked in Rails

Hi guys, I'm getting an error with devise and hotwired/turbo.
This is only when I use the current_user helper in any of the partials that receives any broadcast, the error is the following:

Devise could not find the `Warden::Proxy` instance on your request environment.
Make sure that your application is loading Devise and Warden as expected and that the `Warden::Manager` middleware is present in your middleware stack.

Any idea about how to fix it?
Greetings!
If you are seeing this on one of your tests, ensure that your tests are either executing the Rails middleware stack or that your tests are using the Devise::Test::ControllerHelpers module to inject the request.env['warden'] object for you.

Reply

I'm having the same issue and still looking for a solution - did you solve the problem?

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 85,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.