Turbo-Rails with Devise does not redirect Consistently Rails 6.1.3 Devise 4.7.3 Turbo Rails 0.5.9

THIS IS A COMPANION TO https://github.com/hotwired/turbo-rails/issues/122

REPRODUCTION APP CODE: https://github.com/jasonfb/TR001

Using Rails 6.1.3

Devise 4.7.3

Turbo Rails 0.5.9


Symptom 1:
-- using Turbo-Rails + Devise

When I click "Log In", the form submits but the page does not reload.

Step 1: go to

/users/sign_in

Enter a good username & password (you can sign up or make one on the command line)

Click "Sign In"

on the back end the request WAS processed and even redirected, but the redirect did not happen on the front end. You (the user) are not actually logged in even though your page is hanging and did not redirect.

Result: Page hangs.Expected result: Turbo Rails redirect correctly


Symptom 2

When I click "Log Out", the page does nothing.on the backend I am actually logged out, but the page does not change.If I reload, I see that I am now logged out

Step 1: be logged in

Step 2: Click to "log out"

Notice that the button stays 'grey' (clicked), the request is processed on the back end:

Result: Page hangs

Expected result: Page directs after the user is logged out

The user IS ACTUALLY logged out, but the page hangs and does not redirect.

1 ответ

К вашему сведению, исправление, похоже, находится здесь, в этом PR, ожидая объединения с мастером Devsie: https://github.com/heartcombo/devise/pull/5340

это не требует, чтобы кто-то еще отлаживал дальше (я сделал много!) или отвечал на этот вопрос - этот пост SO существует только как документация.

Другие вопросы по тегам