I've installed TurboPower per the instructions and I've tested in create.turbo_stream.erb that TurboPower is installed with the following,
<%= turbo_stream.console_log("turbo_stream.console_log Message!") %>
But have a service object that I'm trying to do this,
def log Turbo::StreamsChannel.custom_broadcast_action_to( @scope, action: :console_log, message: 'this is from turbo power stream' ) end
And I can not get this to work properly. What am I doing wrong?
I've installed TurboPower per the instructions and I've tested in create.turbo_stream.erb that TurboPower is installed with the following,
<%= turbo_stream.console_log("turbo_stream.console_log Message!") %>But have a service object that I'm trying to do this,
def log Turbo::StreamsChannel.custom_broadcast_action_to( @scope, action: :console_log, message: 'this is from turbo power stream' ) endAnd I can not get this to work properly. What am I doing wrong?