Руслан Корнев
Joined
230 Experience
2 Lessons Completed
0 Questions Solved
Activity
Take a look at my comment https://gorails.com/forum/how-to-use-devise-with-hotwire-turbo-js-discussion#forum_post_17983
Correct me if i'm wrong but the one of disadvantages of this method is that on new session page if user typed wrong email and submits the form the email will not be preserved due to this lines:
if request_format == :turbo_stream
redirect
I found more appropriate solution for me how to fix this.
- do not override
respond
method. - add
data-turbo="false"
attribute to sign in form (which you should copy in advance)
Check this commit for this new feature:
Hi Chris, seems you forgot to include the line about config.navigational_formats
in the snippet which was shown in the screencast