galetahub / ckeditor

Ckeditor 4.x integration gem for rails

Home Page:https://ckeditor.com/ckeditor-4/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

offwhite opened this issue · comments

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