Closed partydrone closed 8 months ago
Hi,
In the application.rb
file try replacing this:
config.action_cable.mount_path = nil
With this:
config.action_cable.mount_path = "/cable"
That's still going to use the built-in Action Cable server but it should at least let you get going for now.
I'd have to dig into why it's not using the custom URL endpoint in more detail. Feel free to look into this too!
This is fixed thanks to this PR: https://github.com/nickjj/docker-rails-example/pull/71
Following a screencast on how to use Hotwire in Rails and using this project as a starting point, after creating a basic
Tweet
scaffold and hooking it up usingturbo_stream_from
andturbo_frame_tag
elements, etc., I noticed that the page insists on trying to connect tows://localhost:8000/cable
in spite of the configuration in application.rb.I tried to identify the cause of the issue and have thus far been unsuccessful. Maybe you will have some idea what's going on?