Note that there are some explanatory texts on larger screens.

plurals
  1. POTrying to Use Uploaded Image Files in Rails ckeditor plugin with carrierwave and MiniMagick
    primarykey
    data
    text
    <p>I am trying to upload files from the ckeditor gem in a rails 3.2.1 app using Carrierwave with MiniMagic.</p> <p>I am on OSX 10.6</p> <p>I used the generator that comes with the gem to generate the models and uploaders, i.e.</p> <p>rails generate ckeditor:install --orm=active_record --backend=carrierwave</p> <p>At the time I click the button to send an image file to the server, I am getting the following error (in the server output):</p> <p>Errno::ENOENT (No such file or directory - identify -ping /var/folders/wK/wKG0M7udG5K7cAjGxTF86k+++TI/-Tmp-/mini_magick20120303-72546-1sg4xlv.jpeg):</p> <p>It appears to be expecting the tmp file to be in that location, but it is putting them in public/uploads/tmp (the file is still there after this happens).</p> <p>If I turn off MiniMagick (by commenting out the include in ckeditor_picture_uploader and removing the resizing code), I get a different error:</p> <p>ArgumentError (Version content doesn't exist!): app/models/ckeditor/asset.rbin url' app/models/ckeditor/picture.rb:5:inurl_content'</p> <p>In the latter case the file actually ends up in the public/uploads directory, but I am still not able to use it due to:</p> <p>I also get the "Version content doesn't exist" error if I just open the image link dialog and press "Browse Server" (meaning I get the error as soon as I hit the button, not after I select a file, which I can't do because of the error).</p> <p>I have not modified the asset.rb and picture.rb created by the generator.</p> <p>Any help would be appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload