我正在使用CKEditor gem。我对application.js
和配置routes.rb
都像如下:Ckeditor珠宝问题与生产模式
# application.js
//= require ckeditor/init
# routes.rb
mount Ckeditor::Engine => '/ckeditor'
创业板工作正常的发展模式,而是移动到生产模式的时候,我得到了错误404,当浏览器请求在CKEditor的文件夹中的JS和CSS文件:
GET http://mydomain/assets/ckeditor/config.js?t=D2LI 404 (Not Found)
GET http://mydomain/assets/ckeditor/skins/moono/editor.css?t=D2LI 404 (Not Found)
GET http://mydomain/assets/ckeditor/lang/vi.js?t=D2LI 404 (Not Found)
GET http://mydomain/assets/ckeditor/styles.js?t=D2LI 404 (Not Found)
请帮我解决我的ckeditor路由配置。先谢谢你。
你可以试试这个:Rails.application.config.assets.precompile + =%w(ckeditor/**/*) –