galetahub / ckeditor

Ckeditor 4.x integration gem for rails
https://ckeditor.com/ckeditor-4/
MIT License
2.23k stars 878 forks source link

ActionView::Template::Error: ActiveStorage::InvariableError #878

Closed offwhite closed 4 years ago

offwhite commented 4 years ago

I have a generic editor setup with active storage and I'm getting and error when i attempt to browse images on the server. Uploads and image viewing works as expected.

ActionView::Template::Error: ActiveStorage::InvariableError

thrown here

# app/models/ckeditor/picture.rb:7
def url_content
  rails_representation_url(storage_data.variant(resize: '800>').processed, only_path: true)
end

My config is very simple:

# initializer
Ckeditor.setup do |config|
  require 'ckeditor/orm/active_record'
end
# config env
  config.active_storage.service = :amazon