Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate Devise main + Turbo #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

carlosantoniodasilva
Copy link

See heartcombo/devise#5558.

@vincemilo I got your app working with Devise main based on the upgrade steps in the changelog/wiki, I do believe the issue was caused by the overrides I mentioned in the issue to make it work with Turbo previously. Since Devise is fully compatible there, those overrides must be removed.

CleanShot.2023-02-17.at.10.33.45.mp4

Let me know if you run into any issues with these changes.

So I don't have to install 3.1.2 :D
Remove the previous custom code to make it work with Turbo, as that can
interfere with Devise itself and cause other issues.

Note that I enforced responders v3.1 in the Gemfile as it's necessary to
work with Devise + Turbo, but we could've just updated it via `bundle
update responders` too. (this can't be enforced by Devise itself due to
compatibility with older Rails versions yet.)
Ideally we'd use `data: { turbo_confirm: "" }`, but this version of
turbo-rails is 1.1.1 which doesn't support that, it requires 1.3.0+, so
I'm just using the more generic `form: { data: { turbo_confirm: "" } }`
version which works for this case.
@@ -1 +1 @@
3.1.2
3.1.3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to revert these afterwards, just made my life a bit easier :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant