ruby on rails 出现找不到文件“jquery.ui.all"的问题 [英] ruby on rails ails with couldn't find file 'jquery.ui.all'
问题描述
找不到文件jquery.ui.all",这是一个已知问题,我将 *=require jquery.ui.all 添加到 application.css 并将//= require jquery.ui.all 添加到 application.js 但是仍然得到错误.http://bpaste.net/show/1RqTDUte2XLBoj8fdTbf/
couldn't find file 'jquery.ui.all' which is a known issue, I added *=require jquery.ui.all to application.css and //= require jquery.ui.all to application.js but still get the error. http://bpaste.net/show/1RqTDUte2XLBoj8fdTbf/
Sprockets::FileNotFound in Preorder#index
Sprockets::FileNotFound in Preorder#index
显示/var/www/localhost/htdocs/selfstarter/app/views/layouts/application.html.erb 其中第 6 行出现:
Showing /var/www/localhost/htdocs/selfstarter/app/views/layouts/application.html.erb where line #6 raised:
找不到文件jquery.ui.all"(在/var/www/localhost/htdocs/selfstarter/app/assets/stylesheets/application.css:14)
couldn't find file 'jquery.ui.all' (in /var/www/localhost/htdocs/selfstarter/app/assets/stylesheets/application.css:14)
提取的源代码(围绕第 6 行):
Extracted source (around line #6):
3: <head>
4: <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
5: <title><%= Settings.product_name %></title>
6: <%= stylesheet_link_tag "application" %>
7: <%= javascript_include_tag "application" %>
8: </head>
9: <!--[if lt IE 9 ]><body class="lt-ie9"><![endif]-->
http://bpaste.net/show/110613/
http://bpaste.net/show/110612/
推荐答案
实际上的解决方案是克隆我的 repo 的新副本并运行
actually the solution was to clone a fresh copy of my repo an run
bundle install --without production
bundle exec rake db:migrate
bundle exec rake db:seed
rails s
这篇关于ruby on rails 出现找不到文件“jquery.ui.all"的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!