marinosoftware / active_storage_drag_and_drop

Provides a form helper to make it easy to make drag-and-drop file upload fields that work with Rails' Active Storage.
MIT License
92 stars 14 forks source link

Make it work with Webpacker #14

Closed AlainPilon closed 4 years ago

AlainPilon commented 5 years ago

Since Rails 6 uses Webpacker, //= require active_storage_drag_and_drop does not work anymore.

dwood-somniainc commented 4 years ago

Definitely. The JS doesn't fire off...and I tried to re-create the second application.js to activate the asset pipeline.

addisonmartin commented 4 years ago

I would also like this issue to be fixed if possible.

dwood-somniainc commented 4 years ago

Can we still access the JS using the Rails Asset Pipeline? Or no.........

dwood-somniainc commented 4 years ago

Read this stackoverflow post guys. Its a working solution for Rails 6

How to get active_storage_drag_and_drop working with webpack -- StackOverflow