我觉得我缺少一个重要步骤:安装gem(bootstrap-wysihtml5)时,我必须手动移动javascript和css文件吗?
当安装gem
(即bootstrap-wysihtml5
)我应该采取什么措施才能正常查找和引用JavaScript和CSS文件。
我将gem bootstrap-wysihtml5
添加到我的gem文件中,然后运行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'。 –