문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top