Problems with ckeditor running on production Rails application with Heroku Problems with ckeditor running on production Rails application with Heroku heroku heroku

Problems with ckeditor running on production Rails application with Heroku


Currently the solution for this problem has been changed.

There is no need to include "ckeditor/override.js"

1 Update your gem.

bundle update ckeditor

2 Add this line to your file config/application.rb

config.assets.precompile += Ckeditor.assetsconfig.assets.precompile += %w( ckeditor/* )config.autoload_paths += %W(#{config.root}/app/models/ckeditor)

It works for me hope will work for you too.


I just solved this problem following this: https://github.com/galetahub/ckeditor/issues/307#issuecomment-22186377 .

Basically, you add ckeditor asset to the precompile list in application.rb, use the rake task to copy them to the proper location during deployment.

Hope it helps.


I followed the instructions on GitHub

You need to set with true the following variable in the file config/enviroments/production.rb

config.assets.compile = true

and add the following code

config.assets.precompile += Ckeditor.assetsconfig.assets.precompile += %w(ckeditor/* )config.autoload_paths += %W(#{config.root}/app/models/ckeditor)

My environment to this solution was:

gem 'ckeditor', '~> 4.1'

ruby "2.3.0"

rails 5.0.0.1