Domanda

This is probably a super dumb question but I'm trying to get Dropzone Image Upload rails gem working and I'm not sure what to do next. https://github.com/ncuesta/dropzonejs-rails

I've followed the readme. I installed the gem

gem 'dropzonejs-rails'

included the JS

//= require dropzone

and included the CSS

/*
  *= require dropzone/dropzone
*/

What now? Don't I have to give a html element an ID or something? Do I have to specify an upload url? Do I need a form? Do I need a model and controller?

È stato utile?

Soluzione

You need to read and follow the instructions on this page too. All the rails gem does is make the asset files available.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top