Comments (4)
Hi Phillip! I am sorry to hear that you were having trouble, and I'm very glad that you got sorted out. It's a shame that you didn't come on Discord, as there's dozens of us waiting there to help.
It's true: ActionCable needs to be set up and working properly or else CableReady and StimulusReflex cannot work. That said, the AC docs are terrible. The good news is that there's not a ton you need to know about AC to get started with CR/SR, but that doesn't help you if you're stuck.
For what it's worth, the async adapter should work just fine. That said, as we can see on the GoRails comments, you're not the first person to run into this problem. Are you working on your localhost? Any virtualization or something that might be atypical?
Anyhow, the CableReady documentation is overdue for a major overhaul. It's coming, and I will certainly add information about cable.yml.
from cable_ready.
@leastbad thanks for the reply. I'll definitely check out the Discord in the future.
To follow up, I don't think there's anything too atypical about my setup. I was trying to trigger DOM updates via CableReady both from the rails console and from active job. Neither worked at first. Switching to adapter: postgresql
immediately got it working from the console.
I was still having issues from ActiveJob, but I was trying out GoodJob, which is very new, and sure enough switching to DelayedJob has gotten it working via background jobs. 🤷
Thanks again, looking forward to the updated docs, and using CableReady more!
from cable_ready.
I saw GoodJob's announcement but I am a Redis/Sidekiq enthusiast. If you're going into production, I would strongly consider using Redis/Sidekiq for caching, jobs and Action Cable.
from cable_ready.
@phillipspc did you got it work on GoodJob or DelayedJob
from cable_ready.
Related Issues (20)
- updates_for: add option to opt out of morphing if element is currently focused HOT 3
- updates_for: Support multiple enable_updates per model
- updates_for: skip updates HOT 7
- #165 reintroducing webpack issue HOT 4
- Helper generator Vite problems
- OperationBuilder#operations_payload messes with keys HOT 5
- Inlcude changed keys when broadcasting to model class? (updates_for :only) HOT 3
- Updatable's ActiveStorage implementation broadcasts to multiple/wrong keys HOT 7
- CR is overriding dom_id HOT 2
- ActiveRecord dependency breaks rspec on non AR Rails implementations HOT 6
- `updates_for` Makes Redundant Calls HOT 1
- Finalizer warning using Ruby 3.2.1 HOT 6
- Using an array with addCssClass does not update the classList correctly
- Improve updatable console logs/warnings
- Document updatable feature
- `inverse_of` returns `nil` when enriching `has_many` association with updates HOT 1
- Upgrading to v5.0.0.pre10 breaks Rails' named route helpers HOT 6
- Can't make `redirect_to` with `cablecar` functionnal with `rc2` HOT 4
- No such generator `cable_ready:stream_from` HOT 2
- dom_id is not consistent with Rails HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cable_ready.