1
votes

I'm trying to use before_filter/before_action in the action cable channels but server responding 'undefined method before_filter'.

Any idea?

Thanks in advance.

1
Perhaps you're looking for on_subscribe and on_unsubscribe? - sjagr
No, but before calling any method in the channel after subscription, I want to use before_action/before_filter but its not working in the channel.rb file. Is there any action in the actioncable? - faisal bhatti
What, exactly, are you trying to achieve with this? - Undo

1 Answers

0
votes

Here I find out the solution:

After subscription, use "after_subscribe" to call another method.