hotwired / hotwire-rails

Use Hotwire in your Ruby on Rails app
https://hotwired.dev
MIT License
971 stars 27 forks source link

XHR Responses causing problems with Devise #9

Closed arpansac closed 3 years ago

arpansac commented 3 years ago

Coming from this: https://github.com/hotwired/turbo/pull/3 Is this functionality released on turbo-rails too in case of form_for ? I just updated the gem but probably this is yet to be launched.

Some more help needed (I'm at the verge of completing and launching my project, just fixing small things):

A Very Happy New Year Friends, you're doing a great job :)

Nodalailama commented 3 years ago

Hello,

May this help you: https://www.youtube.com/watch?v=yZDTBItc3ZM&list=UUIQmhQxCvLHRr3Beku77tww&ab_channel=GoRails

Cordialement,

arpansac commented 3 years ago

Hello,

May this help you: https://www.youtube.com/watch?v=yZDTBItc3ZM&list=UUIQmhQxCvLHRr3Beku77tww&ab_channel=GoRails

Cordialement,

Hey, thank @Nodalailama, I tried it, but do you think that this should be the default behavior?

arpansac commented 3 years ago

Hello, May this help you: https://www.youtube.com/watch?v=yZDTBItc3ZM&list=UUIQmhQxCvLHRr3Beku77tww&ab_channel=GoRails Cordialement,

Hey, thank @Nodalailama, I tried it, but do you think that this should be the default behavior?

Also, it works for the devise part, but when we are clicking a button inside a turboframe which need authenticate_user! it won't redirect...

Is there a way we can intercept the incoming response and if it's for any of the devise paths then we redirect?

marcelolx commented 3 years ago

@arpansac Can you provide an example application to simulate the problem?