【发布时间】:2014-03-21 15:01:29
【问题描述】:
我有一个 Rails 4 应用程序,在 assets 文件夹中有一个字体目录,还有一些常用的东西。我为生产预编译了我的资产,但现在当我尝试在本地工作时,我得到:
Sass::SyntaxError
File to import not found or unreadable: fonts.
整个错误如下所示:
没有太多运气找到答案。谢谢。
编辑
我尝试将我的资产移动到 gemfile 中的资产块中,但没有任何效果。在此之前他们不在任何街区,也不在那里工作。
application.rb
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Atbp
class Application < Rails::Application
config.assets.paths << Rails.root.join("app", "assets", "fonts")
end
end
【问题讨论】:
标签: ruby-on-rails sass asset-pipeline zurb-foundation