module TurboStreamActionsHelper def console_log(text) turbo_stream_action_tag :console_log, text: text end def remote_dialog(content = nil, title:, id: 'remote-dialog', **rendering, &) template = render_template(nil, content, **rendering, &) turbo_stream_action_tag :remoteDialog, dialogId: id, dialogTitle: title, template: end end Turbo::Streams::TagBuilder.prepend(TurboStreamActionsHelper)