Skip to content

Using TurboPower in Service Objects? #47

Description

@mbjornson

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions