在 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'