#112 Devise finally works with Rails 7 and Turbo, but with a twist
16/02/2023
Free
As I recently mentioned, Devise has been finally patched to work with Rails 7 out of the box.
But when I tried installing it, I had a few minor issues:
- remember to use MAIN branch of devise
- re-generate the devise.rb initializer, or add these lines to it:
ruby config.responder.error_status = :unprocessable_entity config.responder.redirect_status = :see_other
Episode source code with comments: https://github.com/corsego/112-rails-7-devise-patch/commit/4717a4a6e12bb292b5515e97ce980d0c17751af7#
The devise patch: https://github.com/heartcombo/devise/pull/5548
0:00 Devise Drama queens
01:00 Install Devise
2:21 Check if Devise works (it doesn't)
2:46 Make devise work (add config.responders)
5:10 Link to sign out
5:43 Summary
0
Sign in to join the conversation
Recommended based on what you are watching now
![#40 Devise Trackable, Users Index page](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTg4OCwicHVyIjoiYmxvYl9pZCJ9fQ==--b75191503a8d30fc413cb4bb6ef083b8f8535573/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
06:07
#40 Devise Trackable, Users Index page
21/06/2021
Free
![#41 Devise Confirmable - no more users with fake emails!](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTc2MywicHVyIjoiYmxvYl9pZCJ9fQ==--c1571d092dac0178f17f208a36ea68acea884f9d/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
12:51
#41 Devise Confirmable - no more users with fake emails!
23/06/2021
Free
![#42 Devise Lockable. Ban or Unban users as you please.](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTgwMCwicHVyIjoiYmxvYl9pZCJ9fQ==--167c1abb2e961584dc4257d11d5b99ec43d2b9a1/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
13:03
#42 Devise Lockable. Ban or Unban users as you please.
25/06/2021
Free
![#39 Devise Authentication from ZERO](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTc3MiwicHVyIjoiYmxvYl9pZCJ9fQ==--e25caef85f06eb42099d682b7c86b40ff99124ab/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
21:39
#39 Devise Authentication from ZERO
19/06/2021
Free