मैं CKEditor gem का उपयोग कर रहा हूं। application.js
के लिए मेरे config और routes.rb
निम्नलिखित की तरह हैं:उत्पादन मोड के साथ सीकेडिटर मणि मुद्दा
# application.js
//= require ckeditor/init
# routes.rb
mount Ckeditor::Engine => '/ckeditor'
मणि विकास मोड में ठीक काम करता है, लेकिन जब उत्पादन मोड में जाने से, मैं त्रुटि 404 ब्राउज़रों CKEditor फ़ोल्डर में js और सीएसएस फ़ाइलों का अनुरोध करते हैं मिला :
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 मार्ग config ठीक करने के लिए मेरी मदद करें। पहले ही, आपका बहुत धन्यवाद।
आप इसे आजमा सकते हैं: Rails.application.config.assets.precompile + =% w (ckeditor/**/*) –