I'm trying to follow the Railscasts episode on jQuery-FileUpload. I've added
gem 'jquery-fileupload-rails'
to the assets group of the Gemfile
, and also added the
//= require jquery-fileupload/basic
line to the application.js
file in the asset directory. When I try to bring up the website, however, the following error is shown:
couldn't find file 'jquery-fileupload'
(in root/app/assets/javascripts/application.js:15)
Any help would be greatly appreciated.
That's really weird, I just tried with a
Gemfile
:and on application.js
and worked great, did you run bundle ? I know its a stupid question but it may be
Remove it from assets group, and it'll work fine.
I think you wanna add the following line to application.js
I found a "solution" - restarting rails server did the trick.
I ran into something similar lately. What worked for me was to load the gem directly from git
And then to load the the needed ui styles
Works flawlessly now
I have fix this by :
add
to your Gemfile.
and run
bundle install
andrake assets:precompile --trace RAILS_ENV=production