I am using the galetahub/ckeditor gem (version 4.0.6) in my Ruby on Rails 4 application. I follow the guide in its Readme file but when I add the //= require ckeditor/override
manifest statement in my application.js
file I get the following error:
Sprockets::FileNotFound - couldn't find file 'ckeditor/override'
My application.js
file is:
//= require jquery
//= require jquery.turbolinks
//= require jquery_ujs
//= require jquery.ui.all
//= require turbolinks
//
//= require ckeditor/override
//= require ckeditor/init
How can I solve the problem?
Note: Since I don't need to use upload functionality I skip instructions in the "How generate models for store uploading files".
My Gemfile
is:
gem 'rails', '4.0.1.rc1'
...
gem 'turbolinks'
gem 'jquery-turbolinks', :git => 'https://github.com/kossnocorp/jquery.turbolinks.git'
gem 'ckeditor'
...
please update your gem 'ckeditor' to the newest one.
run bundle show
to check the gem version.
Add below in Gemfile:
gem "ckeditor", :git => "[email protected]:galetahub/ckeditor.git"
and then run bundle update
it works for me.
I met the same issue here, my gem ckeditor version is 4.0.6.
Using command
bundle open ckeditor
found that there is no override.js.erb file under app/assets/javascript/ckeditor, probably a mistake when publishing the gem? I don't know. I'm using the way suggested by inruby, and it works.
gem "ckeditor", :git => "https://github.com/galetahub/ckeditor.git"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With