I am trying to upload files from the ckeditor gem in a rails 3.2.1 app using Carrierwave with MiniMagic.
I am on OSX 10.6
I used the generator that comes with the gem to generate the models and uploaders, i.e.
rails generate ckeditor:install --orm=active_record --backend=carrierwave
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):
Errno::ENOENT (No such file or directory - identify -ping /var/folders/wK/wKG0M7udG5K7cAjGxTF86k+++TI/-Tmp-/mini_magick20120303-72546-1sg4xlv.jpeg):
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).
If I turn off MiniMagick (by commenting out the include in ckeditor_picture_uploader and removing the resizing code), I get a different error:
ArgumentError (Version content doesn't exist!): app/models/ckeditor/asset.rbin url' app/models/ckeditor/picture.rb:5:inurl_content'
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:
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).
I have not modified the asset.rb and picture.rb created by the generator.
Any help would be appreciated.
which identify
actually results in the path to the identify command? – Maran