# config/importmap.rb # you should see the following line pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true
# app/javascript/turbo_streams/toast.js # here we removed import { StreamActions } from ... # and we use Turbo made available with turbo-rails gem instead window.Turbo.StreamActions.toast = function() { ... }
# config/importmap.rb pin "toastify-js", to: "https://ga.jspm.io/npm:toastify-js@1.12.0/src/toastify.js"
app/views/layouts/application.html.erb <head> ... <%= stylesheet_link_tag "application", "https://ga.jspm.io/npm:toastify-js@1.12.0/src/toastify.css", "data-turbo-track": "reload" %> </head>