Giter Site home page Giter Site logo

Comments (3)

phawk avatar phawk commented on June 21, 2024 1

I'm having this issue as well, fresh install of devise 4.7.3 on a newly generated Rails 6.1.1 app.

Placing your override redirect_to method into ApplicationController fixed for me, thank you!

from responders.

rafaelfranca avatar rafaelfranca commented on June 21, 2024

Maybe there is something in the app making redirect_to private? The method is public in the framework and in the responders gem. Can you try to check the method(:redirect_to).source_location inside that controller?

from responders.

x7 avatar x7 commented on June 21, 2024

@rafaelfranca it is calling ActionController::Flash#redirect_to. We've debugged the issue here, with a few solutions and reproducible code: https://stackoverflow.com/a/71988972/207090

I think this is more of a configuration issue. Try not to use Flash inside API controller. Or could be a bug, not sure who's.

When using ActionController::Base, redirect_to method calls Instrumentation#redirect_to first. But when including ActionController::Flash in an api controller, it is included after Instrumentation and sometimes it doesn't like that.

from responders.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.