Turbo.StreamActions.console_log = function () { const text = this.getAttribute("text") console.log(text) } Turbo.StreamActions.remoteDialog = function () { const dialogId = this.getAttribute("dialogId") const dialogTitle = this.getAttribute("dialogTitle") const dialogContent = this.firstChild.content Turbo.config.forms.showModal(dialogId, dialogTitle, dialogContent) }