Impossible to see CKeditor in production

assets, ckeditor, ruby-on-rails-4

Solution

i have pre-compiled my assets and pushed my repo to production server and got similar bug. And ckeditor was not loading.

Following worked for me:

1) Under config > environment > productio.rb file there is a line config.assets.compile = false

i changed false to true and pushed the code to production site. Stopped and started unicorn. That did the trick now ckeditor is loading.

hope that helps.

Problem

I have a rails 4 app that use CKeditor. In dev mode it works fine but in production ckeditor does not apear and there is a blank space at the location of the textarea. According to the logs, the following file is missing : ``` ActionController::RoutingError (No route matches [GET] "/assets/ckeditor/styles.js") ``` And if i precompile the asset i can see the following file generated : ``` public/assets/ckeditor/styles-65fee53acf063b3d207bc00b4f7ce0d5.js ``` Here is the ckeditor line of my application.rb : ``` config.assets.precompile += Ckeditor.assets ``` It seems that's the file CKeditor want but it is not looking for the precompiled one. How can i fix that?

Original source