在Rails 3.2上使用基础4.3.1时,我收到以下错误:
Sprockets::FileNotFound in Refinery/pages#home
Showing ...../gems/refinerycms-92675b5132ae/core/app/views/refinery/_javascripts.html.erb where line #16 raised:
couldn't find file 'foundation'
(in ...../app/assets/javascripts/application.js:15)
我检查了所有内容,资产已打开,降级为早期版本的Foundation。但没有什么能像它应该的那样(我有同样的东西,运行不同的Rails项目)
Gemfile中的相关行:
source 'https://rubygems.org'
gem 'rails', '3.2.13'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'compass-rails'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'therubyracer', :platforms => :ruby
gem "zurb-foundation", "~> 4.3.1"
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
答案 0 :(得分:0)
我遇到了类似的问题:zurb-foundation gem not added to asset path in existing Rails 3.2 application
我的问题是一个旧的宝石,mongomapper版本。如果您在Gemfile中使用该gem,请尝试删除它并重新生成Gemfile.lock,看看是否无法解决问题。
如果您没有使用该gem,请尝试(在诊断分支中!)删除在vanilla rails应用程序中找不到的所有宝石,并查看其中一个是否导致问题。