问题描述
即使它是一个非常非常简单的gem,我相信我不明白非愚蠢的摘要资产背后的想法(),因为它不在我的应用程序上工作。
Even though it is a very, very simple gem, I believe I don't understand the idea behind non-stupid-digest-assets (https://github.com/alexspeller/non-stupid-digest-assets) since it isn`t working on my app.
我需要在我的应用程序使用CKEDITOR,但是rails digest正在搞乱所有的事情。
I need to use CKEDITOR on my app, but the rails digest is messing everything up.
我添加了这个到config / initializers / non_digest_assets .rb:
I added this to config/initializers/non_digest_assets.rb:
NonStupidDigestAssets.whitelist = [/ckeditor\/.*/]
但我的ckeditor档案仍然不显示。
But my ckeditor files still don't show up.
?
推荐答案
我们刚刚遇到了类似的问题,这是因为我们需要强制重新编译资产。
We just ran into a similar issue, and it was because we needed to force the assets to be recompiled.
Mina通常会为我们处理这个问题,但在这种情况下,它会跳过预先编译资源,因为它没有检测到任何更改。
Mina normally handles this for us but in this case it skipped precompiling the assets because it didn't detect any changes.
这篇关于正确使用非愚蠢的消化资产宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!