Fix JS and JS-based image upload

This commit is contained in:
Christoph Haas 2025-05-02 00:38:42 +02:00
parent 36984ff1d4
commit fa8a7fc77a
6 changed files with 95 additions and 51 deletions

7
config/importmap.rb Normal file
View file

@ -0,0 +1,7 @@
# Pin npm packages by running ./bin/importmap
pin 'application'
pin '@hotwired/turbo-rails', to: 'turbo.min.js'
pin '@hotwired/stimulus', to: 'stimulus.min.js'
pin '@hotwired/stimulus-loading', to: 'stimulus-loading.js'
pin_all_from 'app/javascript/controllers', under: 'controllers'