ckeditor が heroku で機能しなくなった理由がわかりません。私のローカルマシンでは問題なく動作します。
更新: アセットが heroku でホストされている場合、asset_sync gem がなくても機能しますが、それでは機能しません。
エラー: Uncaught SyntaxError: Unexpected token < in config.js:1 ckeditor cannot find config.js, < は 404 not found ページの開始タグです リソースの読み込みに失敗しました: サーバーは 406 のステータスで応答しました (受け入れられません)
私が得ることができる助けに感謝します。
Ckeditor gem、Heroku、Rails 4、asset_sync
アプリケーション.js
//= require ckeditor/init
//= require ckeditor/config
gemfile - バージョン 4.0.7
gem "ckeditor"
アプリケーション.rb
config.autoload_paths += %W(#{config.root}/app/models/ckeditor)
config.assets.precompile += Ckeditor.assets
config.assets.precompile += %w(ckeditor/*)
production.rb
config.assets.compile = true
config.action_controller.asset_host = "//#{ENV['FOG_DIRECTORY']}.s3.amazonaws.com"