Subscribe to an ActionCable Channel specific to a particular view

30 views
Skip to first unread message

dane anderson

unread,
Jan 8, 2016, 4:51:38 PM1/8/16
to Ruby on Rails: Talk

How would you only subscribe to an ActionCable channel on the client depending on which view you are in lets say you have a products controller and a inventory controller and you wanted to subscribe to the products channel only when you are on the products view and the inventory channel only when you are on the inventory view?

Reply all
Reply to author
Forward
0 new messages