ckeditor: Upload image not work in Rails 5
I created a blank project from scratch, add these gem:
gem 'mini_magick'
gem 'carrierwave'
gem 'ckeditor'
And follow any tutorial in README.
When trying to insert an image to a field, if I chose to upload from “image info” tab, image loading spinner just spins forever.

In the console, transaction immediately rollbacks without any error message.

If I chose to upload directly in “upload” tab, it returns this error:

Again, no transaction error messae in console

About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 22 (4 by maintainers)
PR https://github.com/galetahub/ckeditor/pull/683 solves the issue on Rails 5 for me. Kindly merge @kaanoo2904’s changes. Thanks for your hard work!!!
After some research, I found out that from Rails 5 , belongs_to associations now is enforced, so
polymorphic: truemust be followed byoptional: trueto get the form submitted.I also saw that someone has made a pull request about this ?
https://github.com/galetahub/ckeditor/pull/683
Just pushed new commits, check out this
Sorry. Actually my issue was this one: https://github.com/galetahub/ckeditor/issues/829