Syl*_*Syl 11 assets ckeditor ruby-on-rails-4
我有一个使用CKeditor的rails 4应用程序.在开发模式下,它工作正常,但在生产中,ckeditor不是apear,并且在textarea的位置有一个空白区域.
根据日志,缺少以下文件:
ActionController::RoutingError (No route matches [GET] "/assets/ckeditor/styles.js")
Run Code Online (Sandbox Code Playgroud)
如果我预编译资产,我可以看到生成以下文件:
public/assets/ckeditor/styles-65fee53acf063b3d207bc00b4f7ce0d5.js
Run Code Online (Sandbox Code Playgroud)
这是我的application.rb的ckeditor行:
config.assets.precompile += Ckeditor.assets
Run Code Online (Sandbox Code Playgroud)
看来这是CKeditor想要的文件,但它不是在寻找预编译的文件.我该如何解决这个问题?
| 归档时间: |
|
| 查看次数: |
2568 次 |
| 最近记录: |