【发布时间】:2013-12-22 19:09:09
【问题描述】:
我认为我错过了重要的一步:
安装gem(即bootstrap-wysihtml5)时,我应该采取哪些步骤才能正确查找和引用javascript和css文件。
我将 gem bootstrap-wysihtml5 添加到我的 gemfile,然后运行 bundle install。
我将//= require bootstrap-wysithtml5 放在application.js 中,将*= require bootstrap-wysithtml5 放在application.css 中。
我收到以下错误:
Error compiling CSS asset
Sprockets::File not found: couldnt find file 'bootstrap-wysihtml5.css'
我是否必须手动将 js 和 css 复制到相关的应用程序/资产文件中,或者我是否缺少关键步骤?
【问题讨论】:
-
根据文档,Rails 的 gem 是
bootstrap-wysihtml5-rails,而不是bootstrap-wysihtml5。
标签: ruby-on-rails gem asset-pipeline bundler