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ルート設定を修正するのを手伝ってください。前もって感謝します。