Search code examples
ruby-on-railsrubyturbolinkshotwire-rails

Rails 7 new app with --css bootstrap - turbo buttons won't work


When creating new app Rails 7 with rails new myapp --css bootstrap my turbo button won't work:

= button_to "Sign out", edit_post_path, method: :delete, form: { data: { turbo_confirm: "Are you sure?" } }

"are you sure?" wont popup when clicking on button, so how to fix it?

pop-up should work on turbo


Solution

  • it's bug, found ticket on github. bootstrap installation is broken in new rails.

    Use with --javascript=esbuild or if you want to use importmaps than only manual setup is option