Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trouble on error "couldn't find file 'ckeditor/override'" in my application.js file

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'
...
like image 773
Backo Avatar asked Oct 30 '13 16:10

Backo


2 Answers

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.

like image 151
inruby Avatar answered Sep 28 '22 19:09

inruby


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"
like image 24
xiaoboa Avatar answered Sep 28 '22 20:09

xiaoboa