本文介绍了Rails jquery-fileupload gem-找不到文件错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试关注jQuery-FileUpload上的Railscasts集.我已添加
I'm trying to follow the Railscasts episode on jQuery-FileUpload. I've added
gem 'jquery-fileupload-rails'
到Gemfile的资产组,并添加
//= 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)
任何帮助将不胜感激.
推荐答案
我找到了一个解决方案"-重新启动Rails服务器可以解决问题.
I found a "solution" - restarting rails server did the trick.
这篇关于Rails jquery-fileupload gem-找不到文件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!