title: How can I add javascript to only a single view in Rails 5?
body: <p>I have a single controller that has 2 actions/views and a channel all of which have been scaffolded and pretty much using a default project.</p>
  
  <p>When I load either view I can see that the channel subscribes properly.</p>
  
  <p>I need the subscription to happen only on one of the views. Currently the asset pipeline appears to be compiling everything into a single js file and then serving that js file to every page.</p>
  
  <p>When I scaffolded my channel it created some javascript called channel.js. How can I include channel.js with only specific actions/views?</p>