DELETE link is trying to do a GET request

Posted by Ife Odugbesan

7 months ago

1

bootstrap turbo link importmap rails

Error message:

No route matches [GET]


Check if you have any javascript errors in the browser console. It may be an issue with the importing of bootstrap and popper. 

If you have these lines in your importmap.rb:

pin "bootstrap" # @5.3.2
pin "@popperjs/core", to: "@popperjs--core.js" # @2.11.8
Replace them with the following:

pin "bootstrap", to: "bootstrap.min.js", preload: true
pin "@popperjs/core", to: "popper.js", preload: true