我正在使用CKEditor gem。我的application.js
和配置routes.rb
如下:
# application.js
//= require ckeditor/init
# routes.rb
mount Ckeditor::Engine => '/ckeditor'
gem 在开发模式下工作正常,但在进入生产模式时,当浏览器请求 ckeditor 文件夹中的 js 和 css 文件时出现错误 404:
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 路由配置。先感谢您。