This is a sample of how to use ActionCable & Stimulus to update partials in Rails 6.
redisso ActionCable will work locally.
Pull down the repo & run:
brew install redis ./bin/setup
brew install redisYou will need redis installed on your local machine & have it running for ActionCable to work.
bin/setup- runs bundler & yarn, then sets up the database.
Next you should be able to run:
To turn on the server, your port may vary but if you visit http://localhost:3000/comments you should be able to see the realtime updates when CRUD'ing objects.