You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rails-turbo brings a lot of functionality along with it. I think that this functionality is a useful default for Rails apps in 2023+ but I can see reasonable arguments for taking a more minimal approach. We should make a decision because the current situation makes our devise setup broken out of the box.
The text was updated successfully, but these errors were encountered:
Discussed this at rails guild on 8 September. Seems like we're leaning towards turbo-rails. We could also setup turbo to be disabled by default and behind a flag if we didn't want to force turbo on new projects.
Symptoms
Currently the apps we generate have neither rails-ujs nor rails-turbo installed. This means that the Devise sign out link will not work:
Why is this happening?
Rails 7 does not automatically import any JS for us.
Our options
Option 1: enable @rails/ujs
yarn install @rails/ujs
packs/application.js
Option 2: enable turbo-rails
Instructions: https://github.com/hotwired/turbo-rails
Recommendation
rails-turbo brings a lot of functionality along with it. I think that this functionality is a useful default for Rails apps in 2023+ but I can see reasonable arguments for taking a more minimal approach. We should make a decision because the current situation makes our devise setup broken out of the box.
The text was updated successfully, but these errors were encountered: