title: rails ckeditor: picture uploading doesnt work
body: <p>I have installed ckeditor in my rails app going through the instruction in here: <a href="https://github.com/fxposter/rails_3_1_with_ckeditor_and_carrierwave" rel="nofollow">https://github.com/fxposter/rails_3_1_with_ckeditor_and_carrierwave</a>
  Ckeditor loaded and function good except uploading picture doesnt work. I don't know why.
  When I upload picture, it just keep showing loading animation and nothing else it does. But picture actually get uploaded which I knew by exploring my apps folder tht is inside \public\tmp. But when I again browse server it shows no image. And when I browsed sqlite database I saw there was no data at all. Which means, picture is getting uploaded but it is failing to keep assets info in database. What can I do in this case?</p>
  
  <p>My error log looks like this. </p>
  
  <pre><code>Started POST "/ckeditor/pictures?qqfile=Picture0004.jpg" for 127.0.0.1 at 2012-08-05 00:00:42 +0300
  Processing by Ckeditor::PicturesController#create as */*
    Parameters: {"qqfile"=&gt;"Picture0004.jpg"}
  Completed 500 Internal Server Error in 268ms
  
  Errno::ENOENT (No such file or directory - identify -ping -quiet -format "%w\n" "c:/RAILSapp/txtEdtr/public/uploads/tmp/20120805-0000-7596-2102/Picture0004.jpg"):
    subexec (0.2.2) lib/subexec.rb:71:in `spawn'
    subexec (0.2.2) lib/subexec.rb:71:in `spawn'
    subexec (0.2.2) lib/subexec.rb:55:in `run!'
    subexec (0.2.2) lib/subexec.rb:41:in `run'
    mini_magick (3.4) lib/mini_magick.rb:405:in `run'
    mini_magick (3.4) lib/mini_magick.rb:399:in `run_command'
    mini_magick (3.4) lib/mini_magick.rb:230:in `[]'
    C:/Ruby193/lib/ruby/gems/1.9.1/bundler/gems/ckeditor-7a987ee4c703/lib/ckeditor/backend/carrierwave.rb:57:in `read_dimensions'
    carrierwave (0.6.2) lib/carrierwave/uploader/processing.rb:85:in `block in process!'
    carrierwave (0.6.2) lib/carrierwave/uploader/processing.rb:81:in `each'
    carrierwave (0.6.2) lib/carrierwave/uploader/processing.rb:81:in `process!'
    carrierwave (0.6.2) lib/carrierwave/uploader/callbacks.rb:18:in `block in with_callbacks'
    carrierwave (0.6.2) lib/carrierwave/uploader/callbacks.rb:18:in `each'
    carrierwave (0.6.2) lib/carrierwave/uploader/callbacks.rb:18:in `with_callbacks'
    carrierwave (0.6.2) lib/carrierwave/uploader/cache.rb:112:in `cache!'
  </code></pre>
  
  <p>and while get it looks like this </p>
  
  <pre><code>Started GET "/ckeditor/pictures?CKEditor=test_area&amp;CKEditorFuncNum=2&amp;langCode=en" for 127.0.0.1 at 2012-08-05 00:27:57 +0300
  Processing by Ckeditor::PicturesController#index as HTML
    Parameters: {"CKEditor"=&gt;"test_area", "CKEditorFuncNum"=&gt;"2", "langCode"=&gt;"en"}
    [1m[35mCkeditor::Picture Load (0.0ms)[0m  SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') ORDER BY id desc
    Rendered C:/Ruby193/lib/ruby/gems/1.9.1/bundler/gems/ckeditor-7a987ee4c703/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
  DEPRECATION WARNING: ActiveSupport::JSON::Variable is deprecated and will be removed in Rails 4.0. For your own custom JSON literals, define #as_json and #encode_json yourself. (called from new at C:/Ruby193/lib/ruby/gems/1.9.1/bundler/gems/ckeditor-7a987ee4c703/lib/ckeditor/utils.rb:12)
    Rendered C:/Ruby193/lib/ruby/gems/1.9.1/bundler/gems/ckeditor-7a987ee4c703/app/views/ckeditor/pictures/index.html.erb within layouts/ckeditor/application (5.0ms)
  DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data =&gt; { :confirm =&gt; 'Text' }' instead. (called from _____uby____lib_ruby_gems_______bundler_gems_ckeditor__a___ee_c____app_views_ckeditor_shared__asset_tmpl_html_erb___29464367_32812632 at C:/Ruby193/lib/ruby/gems/1.9.1/bundler/gems/ckeditor-7a987ee4c703/app/views/ckeditor/shared/_asset_tmpl.html.erb:4)
    Rendered C:/Ruby193/lib/ruby/gems/1.9.1/bundler/gems/ckeditor-7a987ee4c703/app/views/ckeditor/shared/_asset_tmpl.html.erb (1.0ms)
  Completed 200 OK in 52ms (Views: 23.0ms | ActiveRecord: 0.0ms)
  </code></pre>