Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

I saw turbo_stream_from not working on existing rails app upgraded to 7.0.0

$
0
0

This app never used action cable or redis before, I upgraded to rails 7.0.0 from 5.0 today to try turbo_stream_from for the first time.

It looks like working on the rails console, because I see Turbo::Streams::ActionBroadcastJob is being enqueued and performed when I create a record. But

I generated a sample 7.0.0 app and tried to find differences. I added two files app/channels/application_cable/channel.rb and app/channels/application_cable/connection.rb. I have config/cable.yml as below

development:  adapter: redis  url: redis://localhost:6379/1test:  adapter: testproduction:  adapter: redis  url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>  channel_prefix: old_app_production

Is there any additional setting needed for old apps? I wish there was rails actioncable:install. I am still learning, please help. Ah, for the sample app I followed a video https://www.youtube.com/watch?v=mpWFrUwAN88


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>