Dear All,
I am facing the issue in action cable rescue from_block.
module ApplicationCable
class Connection < ActionCable::Connection::Base
rescue_from Exception, with: :report_error
private
def report_error(e)
::Project.logger.error(e)
end
end
end
Followed Link Action Cable Overview — Ruby on Rails Guides
Getting Error: on console
NoMethodError (undefined method `rescue_from’ for ApplicationCable::Connection:Class Did you mean? rescue):
Please let me know where is the mistake, or what I have missed. Thanks