供应商未在Rails 4上加载的自定义文件夹

时间:2014-04-21 06:44:07

标签: ruby-on-rails ruby-on-rails-4

我买了一个主题,想把整个主题应用到我的网站。

我将该行放在scss文件中

* = require_tree ../../../ vendor / assets / lenord-single-page-theme / css

但它没有包含我想要的文件夹

Rails.application.config.assets.paths
=> ["pixnet_hackathon/website/dqa_streesful_server/app/assets/ace-admin-theme",
 "pixnet_hackathon/website/dqa_streesful_server/app/assets/images",
 "pixnet_hackathon/website/dqa_streesful_server/app/assets/javascripts",
 "pixnet_hackathon/website/dqa_streesful_server/app/assets/lenord-single-page-theme",
 "pixnet_hackathon/website/dqa_streesful_server/app/assets/stylesheets",
 "pixnet_hackathon/website/dqa_streesful_server/vendor/assets/javascripts",
 "pixnet_hackathon/website/dqa_streesful_server/vendor/assets/stylesheets",
 ".rvm/gems/ruby-2.1.0/gems/simple-navigation-bootstrap-1.0.0/vendor/assets/stylesheets",
 ".rvm/gems/ruby-2.1.0/gems/bourbon-3.1.8/app/assets/stylesheets",
 ".rvm/gems/ruby-2.1.0/gems/tinymce-rails-4.0.19/app/assets/javascripts",
 ".rvm/gems/ruby-2.1.0/gems/tinymce-rails-4.0.19/app/assets/source",
 ".rvm/gems/ruby-2.1.0/gems/tinymce-rails-4.0.19/vendor/assets/javascripts",
 ".rvm/gems/ruby-2.1.0/gems/bootstrap-sass-3.1.1.0/vendor/assets/fonts",
 ".rvm/gems/ruby-2.1.0/gems/bootstrap-sass-3.1.1.0/vendor/assets/javascripts",
 ".rvm/gems/ruby-2.1.0/gems/bootstrap-sass-3.1.1.0/vendor/assets/stylesheets",
 ".rvm/gems/ruby-2.1.0/gems/turbolinks-2.2.2/lib/assets/javascripts",
 ".rvm/gems/ruby-2.1.0/gems/jquery-rails-3.1.0/vendor/assets/javascripts",
 ".rvm/gems/ruby-2.1.0/gems/coffee-rails-4.0.1/lib/assets/javascripts"]

1 个答案:

答案 0 :(得分:1)

请使用以下方式参考:

//= require_tree ../../../vendor/assets/lenord-single-page-theme/css/.

希望有所帮助:)