4,850 Experience
41 Lessons Completed
1 Question Solved


Posted in Cannot Reset Devise Password


found the fix at that stackoverflow. appears to be some issue with devise/turbo

edit the form_for to have html: {'data-turbo' => "false}
this tells Devise to fall back to non-Turbo interaction for the log-in and registration.

Posted in Cannot Reset Devise Password

I am currently using devise, pretty much straight out of the box, the only changes i've made is custom views.

The problem I am having is that I cannot reset a user's password. I follow the link generated in the email, type in a new password, then nothing changes, I'm still on the reset password form page with the form still filled out.

In the logs, I see:

Started POST "/users/password" for ::1 at 2021-05-19 22:25:52 -0500
Processing by Devise::PasswordsController#create as TURBO_STREAM
  Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"reset_password_token"=>"[FILTERED]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Change my password"}
  Rendering layout layouts/application.html.erb
  Rendering users/passwords/new.html.erb within layouts/application
  Rendered users/shared/_error_messages.html.erb (Duration: 1.1ms | Allocations: 516)
  Rendered users/shared/_links.html.erb (Duration: 0.3ms | Allocations: 161)
  Rendered users/passwords/new.html.erb within layouts/application (Duration: 4.5ms | Allocations: 2025)
[Webpacker] Everything's up-to-date. Nothing to do
  Rendered shared/_navbar.html.erb (Duration: 0.3ms | Allocations: 158)
  Rendered layout layouts/application.html.erb (Duration: 11.6ms | Allocations: 6971)
Completed 200 OK in 17ms (Views: 12.6ms | ActiveRecord: 0.0ms | Allocations: 9605)

any idea what I could be doing wrong?
for more context, here is the link to my repo on Github

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.