我正在使用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/**/*) –