Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

The path of CkeditorPictureUploader#store_dir is not prepended with "/system" #93

Closed
stanislaw opened this Issue · 3 comments

4 participants

@stanislaw

Using

rails generate ckeditor:install --orm=active_record --backend=carrierwave

results in that the path of CkeditorPictureUploader#store_dir is not prepended with "public/system", while default CarrierWave generated uploaders have

  # Override the directory where uploaded files will be stored.
  # This is a sensible default for uploaders that are meant to be mounted:
  # def store_dir
  #   "public/system/#{mounted_as.to_s.pluralize}/#{model.id}"
  # end

It leads to that ckeditor-uploaded pictures are not shared beetween deploys.

Did I overlook something? Is there any specific reason for this?

@yangman-tutu

have this problem in my app, is there anybody fixed this?

@stanislaw

Actually it should not be a "problem" for you - just set the right path manually as did I.

I have:

  def store_dir
    "system/ckeditor_assets/pictures/#{model.id}"
  end

I opened this issue because I wondered about the default layout that is being created by ckeditor's generators.

@regmiprem

I am using mongodb in rails. what thing should be done in order to wwork foe file and zip file attachment and downloads? All things are working fine except file download. I can insert the zip file in my input. But i canntot download that zip file from front end. I have inserted
protected

def ckeditor_pictures_scope(options = {})
ckeditor_filebrowser_scope(options)
end

def ckeditor_attachment_files_scope(options = {})
ckeditor_filebrowser_scope(options)
end
in my application_controller.rb also. Where i am missing? I think u can give the answer so i posted here .. sorry

@galetahub galetahub closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.