Sadly, I had a lot of difficulty getting Rails 7 with Turbo and Stimulus up and running. The Rails docs feel like they’re missing a few steps, so I wanted to document the commands I needed to run to get Rails 7 with the hotwire.dev tooling up and running.
First, create the directory for your Rails app and add an empty
mkdir rails_app cd rails_app/ touch Gemfile
Gemfile created above in your editor of choice and add the following content:
# Gemfile source "https://rubygems.org" gem "rails", "7.0.4"
Then run the following commands in the root of your Rails app:
The following was pulled together from multiple sources, including but not limited to:
Hope that helps – happy coding!