The Rails app I am working on was recently upgraded from Rails 6 to Rails 7. What is the most straightforward way to determine if all of the Hotwire goodness (gems, ActionCable, etc.) is enabled in this upgraded app?
After generating a new Rails 7 app via rails new and comparing its Gemfile/Gemfile.lock with that from my upgraded project, it looks like I need to include the following:
# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
gem "turbo-rails"
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
gem "stimulus-rails"
ActionCable and redis are already included in my upgraded project. And ActionCable is configured via config/cable.yml to use the redis adapter.
Is there anything else I should check?
I think there might be an install scrip you will need to run. Those are described in the Installation section of the readme here: GitHub - hotwired/turbo-rails: Use Turbo in your Ruby on Rails app
Same thing for stimulus: GitHub - hotwired/stimulus-rails: Use Stimulus in your Ruby on Rails app
1 Like