install dropzone
Used 11 times
C
Clément Prod'homme
Usage
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/Xg8sA7"
Template Source
Review the code before running this template on your machine.
run "yarn add dropzone --dev"
append_to_file "app/javascript/packs/application.js" do
"import Dropzone from 'dropzone'"
end
puts ''
puts '------------------'
puts "Just add the '.dropzone' class on form"
puts "See more details here : https://www.dropzonejs.com/#usage"