You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rails destroy cable_ready:channel Sailor does not seem to destroy anything.
It can't seem to locate the Stimulus controller template?
In this case I'd previously run the generator with "y" to broadcast_to, "Sailor" for the resource name, and "y" for the Stimulus controller. It complained about not finding the controller template in any of my source paths, as shown below.
~/testcr $ rails destroy cable_ready:channel Sailor
Running via Spring preloader in process 69822
generate channel
rails generate channel sailor
Are you streaming to a resource using broadcast_to? (y/N) y
Which resource are you streaming for? (Sailor)
Are you going to use a Stimulus controller to subscribe to this channel? (y/N) y
Could not find "app/javascript/controllers/%file_name%_controller.js" in any of your source paths. Your current source paths are:
/Users/leastbad/.rvm/gems/ruby-2.6.5/gems/cable_ready-5.0.0.pre0/lib/generators/cable_ready/templates
Happy to help troubleshoot. Let me know how I can be of assistance.
The text was updated successfully, but these errors were encountered:
It also occurs to me that if they do opt to install a Stimulus controller, perhaps we should remove the js channel subscriber class? It'll just sit there trying to subscribe but never succeeding (because it's not passing an ID).
At some future point we might want to give people a helper to generate a secure global id value, and provide instructions on how how to decode it in the Channel class.
rails destroy cable_ready:channel Sailor
does not seem to destroy anything.In this case I'd previously run the generator with "y" to
broadcast_to
, "Sailor" for the resource name, and "y" for the Stimulus controller. It complained about not finding the controller template in any of my source paths, as shown below.Happy to help troubleshoot. Let me know how I can be of assistance.
The text was updated successfully, but these errors were encountered: