0
|
Tolga · 技术社区 · 6 年前 |
![]() |
1
1
我认为在定义订阅时不能访问实例变量。但是您可以将product\u id作为参数传递,然后订阅ProductChannel。 https://guides.rubyonrails.org/action_cable_overview.html#subscriber
|
![]() |
2
2
在您的
一个例子 exists within the ActionCable codebase
|