javascript - How to integrate jquery.fileupload-rails? -


I am trying to integrate the following gem: but it became an impossible mission. I've been trying for the past two days and it just does not want to load jquery.fileupload-jargon javascript.

I tried this tutorial:

railscasts.com/episodes/381-jquery-file-upload?view=asciicast 5minutenpause.com/blog/2013/09/04/ Multi-file-upload-along-jquery-rails-4-and-paperclip /

This is my application.js:

  // is essential jquery / / = Required jquery -ui // = Requires jquery_ujs // = jquery.fileupload / basic // Requires TurboLine // = require_tree  

Gemfile.lock:

  jquery-rails (3.1.2) jquery-ui-rails (5.0.2) jquery.fileupload-rails (1.11) .0)  

Have tried and it does not work. How do it work?

Add a line to your jammfile.

Gems 'Jquery.fileupload-rails'

Now you can require JavaScript library in application.js:

// = jquery.fileupload Requirements


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -