You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm implementing an Engine with web render. Main Application is api_only redirect_to method is delegated to the controller class (delegate :head, :render, :redirect_to, to: :controller) but seems to be private (even if source says another way). Here is an example where it breaks.
NoMethodErrorinMyEngine::Users::SessionsController#createprivatemethod `redirect_to' calledfor#85 MyEngine::Users::SessionsController:0x00007fed79550140> Did you mean? redirect_back
I was able to fix it by redefining redirect_to on a public method which will be use in navigation_location method
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?
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.
I'm implementing an Engine with web render. Main Application is
api_only
redirect_to
method is delegated to the controller class (delegate :head, :render, :redirect_to, to: :controller
) but seems to be private (even if source says another way). Here is an example where it breaks.Error is
I was able to fix it by redefining
redirect_to
on a public method which will be use in navigation_location methodThe text was updated successfully, but these errors were encountered: