Authenticating ActionCable connections
问题 I've found a wonderful ActionCable gem, which is a good solution for SPA. I want to send only the html , css and js assets, all other connections will be implemented through ActionCable . It's not difficult to exchange strings or integers, but how can I login through ActionCable? 回答1: From the Readme # app/channels/application_cable/connection.rb module ApplicationCable class Connection < ActionCable::Connection::Base identified_by :current_user def connect self.current_user = find_verified