ckeditor 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. data/app/assets/javascripts/ckeditor/config.js +0 -14
  2. data/app/controllers/ckeditor/application_controller.rb +4 -4
  3. data/app/views/ckeditor/shared/_asset_tmpl.html.erb +1 -1
  4. data/lib/ckeditor/orm/active_record.rb +1 -3
  5. data/lib/ckeditor/orm/mongoid.rb +1 -3
  6. data/lib/ckeditor/version.rb +1 -1
  7. data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_attachment_file_uploader.rb +0 -5
  8. data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_picture_uploader.rb +0 -5
  9. data/test/dummy/log/test.log +1054 -0
  10. data/test/dummy/public/uploads/tmp/20130128-1219-3894-1084/rails.tar.gz +0 -0
  11. data/test/dummy/public/uploads/tmp/20130128-1219-3894-1288/content_rails.png +0 -0
  12. data/test/dummy/public/uploads/tmp/20130128-1219-3894-1288/rails.png +0 -0
  13. data/test/dummy/public/uploads/tmp/20130128-1219-3894-1288/thumb_rails.png +0 -0
  14. data/test/dummy/public/uploads/tmp/20130128-1219-3894-3261/rails.tar.gz +0 -0
  15. data/test/dummy/public/uploads/tmp/20130128-1219-3894-3564/rails.tar.gz +0 -0
  16. data/test/dummy/public/uploads/tmp/20130128-1219-3894-4233/content_rails.png +0 -0
  17. data/test/dummy/public/uploads/tmp/20130128-1219-3894-4233/rails.png +0 -0
  18. data/test/dummy/public/uploads/tmp/20130128-1219-3894-4233/thumb_rails.png +0 -0
  19. data/test/dummy/public/uploads/tmp/20130128-1219-3894-4595/content_rails.png +0 -0
  20. data/test/dummy/public/uploads/tmp/20130128-1219-3894-4595/rails.png +0 -0
  21. data/test/dummy/public/uploads/tmp/20130128-1219-3894-4595/thumb_rails.png +0 -0
  22. data/test/dummy/public/uploads/tmp/20130128-1219-3894-8459/rails.tar.gz +0 -0
  23. data/test/dummy/public/uploads/tmp/20130128-1219-3894-8942/rails.tar.gz +0 -0
  24. data/test/dummy/public/uploads/tmp/20130128-1219-3894-9011/content_rails.png +0 -0
  25. data/test/dummy/public/uploads/tmp/20130128-1219-3894-9011/rails.png +0 -0
  26. data/test/dummy/public/uploads/tmp/20130128-1219-3894-9011/thumb_rails.png +0 -0
  27. data/test/dummy/public/uploads/tmp/20130128-1219-3894-9730/content_rails.png +0 -0
  28. data/test/dummy/public/uploads/tmp/20130128-1219-3894-9730/rails.png +0 -0
  29. data/test/dummy/public/uploads/tmp/20130128-1219-3894-9730/thumb_rails.png +0 -0
  30. metadata +42 -2
@@ -89,18 +89,4 @@ CKEDITOR.editorConfig = function( config )
89
89
  }
90
90
  }
91
91
  });
92
-
93
- /* Toolbars */
94
- config.toolbar = 'Easy';
95
-
96
- config.toolbar_Easy =
97
- [
98
- ['Source','-','Cut','Copy','Paste','PasteText','PasteFromWord'],
99
- ['Undo','Redo'], ['Link','Unlink','Anchor'],
100
- ['Image', 'Table','HorizontalRule','SpecialChar'],
101
- ['Maximize','-','About'], '/',
102
- ['Bold','Italic','Underline','Strike', 'RemoveFormat'],
103
- ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
104
- ['Styles','Format'], ['Subscript', 'Superscript']
105
- ];
106
92
  };
@@ -9,10 +9,10 @@ class Ckeditor::ApplicationController < ::ApplicationController
9
9
 
10
10
  def respond_with_asset(asset)
11
11
  file = params[:CKEditor].blank? ? params[:qqfile] : params[:upload]
12
- asset.data = Ckeditor::Http.normalize_param(file, request)
13
-
14
- callback = ckeditor_before_create_asset(asset)
15
-
12
+ asset.data = Ckeditor::Http.normalize_param(file, request)
13
+
14
+ callback = ckeditor_before_create_asset(asset)
15
+
16
16
  if callback && asset.save
17
17
  body = params[:CKEditor].blank? ? asset.to_json(:only=>[:id, :type]) : %Q"<script type='text/javascript'>
18
18
  window.parent.CKEDITOR.tools.callFunction(#{params[:CKEditorFuncNum]}, '#{Ckeditor::Utils.escape_single_quotes(asset.url_content)}');
@@ -9,7 +9,7 @@
9
9
  :class => "fileupload-cancel gal-del" %>
10
10
 
11
11
  <div class="fileupload-file gal-inner-holder">
12
- <div class="img"><img src="${url_thumb}" title="${filename}"></div>
12
+ <div class="img"><img src="<%= Rails.configuration.action_controller.asset_host %>${url_thumb}" title="${filename}"></div>
13
13
  <div class="img-data">
14
14
  <div class="img-name">${filename}</div>
15
15
  <div class="time-size">
@@ -14,9 +14,7 @@ module Ckeditor
14
14
  base.class_eval do
15
15
  self.table_name = "ckeditor_assets"
16
16
 
17
- belongs_to :assetable, :polymorphic => true
18
-
19
- attr_accessible :data, :assetable_type, :assetable_id, :assetable
17
+ belongs_to :assetable, :polymorphic => true
20
18
  end
21
19
  end
22
20
  end
@@ -31,9 +31,7 @@ module Ckeditor
31
31
  field :width, :type => Integer
32
32
  field :height, :type => Integer
33
33
 
34
- belongs_to :assetable, :polymorphic => true
35
-
36
- attr_accessible :data, :assetable_type, :assetable_id, :assetable
34
+ belongs_to :assetable, :polymorphic => true
37
35
  end
38
36
  end
39
37
  end
@@ -1,6 +1,6 @@
1
1
  module Ckeditor
2
2
  module Version
3
- GEM = "4.0.0".freeze
3
+ GEM = "4.0.1".freeze
4
4
  EDITOR = "4.0.1".freeze
5
5
  end
6
6
  end
@@ -33,9 +33,4 @@ class CkeditorAttachmentFileUploader < CarrierWave::Uploader::Base
33
33
  def extension_white_list
34
34
  Ckeditor.attachment_file_types
35
35
  end
36
-
37
- # Use the model's stored attribute to retrieve the file name
38
- def filename
39
- model.data_file_name
40
- end
41
36
  end
@@ -44,9 +44,4 @@ class CkeditorPictureUploader < CarrierWave::Uploader::Base
44
44
  def extension_white_list
45
45
  Ckeditor.image_file_types
46
46
  end
47
-
48
- # Use the model's stored attribute to retrieve the file name
49
- def filename
50
- model.data_file_name
51
- end
52
47
  end
@@ -11669,3 +11669,1057 @@ Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.3ms)
11669
11669
   (0.1ms) rollback transaction
11670
11670
   (0.1ms) begin transaction
11671
11671
   (0.1ms) rollback transaction
11672
+  (0.1ms) select sqlite_version(*)
11673
+  (0.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
11674
+  (0.1ms) PRAGMA index_list("schema_migrations")
11675
+  (14.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
11676
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
11677
+ Migrating to CreatePosts (20110623120047)
11678
+  (0.1ms) begin transaction
11679
+  (0.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "info" text, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
11680
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110623120047')
11681
+  (0.1ms) commit transaction
11682
+  (0.4ms) CREATE TABLE "ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
11683
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
11684
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
11685
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
11686
+  (0.1ms) PRAGMA index_info('idx_ckeditor_assetable_type')
11687
+  (0.2ms) CREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")
11688
+  (0.1ms) begin transaction
11689
+  (0.1ms) SAVEPOINT active_record_1
11690
+ SQL (28.5ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:19:44 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", nil], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:19:44 UTC +00:00], ["width", nil]]
11691
+ SQLite3::ConstraintException: ckeditor_assets.data_file_name may not be NULL: INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11692
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11693
+  (0.1ms) rollback transaction
11694
+  (0.1ms) begin transaction
11695
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11696
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11697
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xa706a34 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130128-3894-1p21ivc>>, "CKEditor"=>"ckeditor_field"}
11698
+  (0.1ms) SAVEPOINT active_record_1
11699
+ SQL (0.7ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:19:45 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", nil], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:19:45 UTC +00:00], ["width", nil]]
11700
+ SQLite3::ConstraintException: ckeditor_assets.data_file_name may not be NULL: INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11701
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11702
+ Completed 500 Internal Server Error in 119ms
11703
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11704
+  (0.1ms) rollback transaction
11705
+  (0.1ms) begin transaction
11706
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11707
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11708
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xa595ccc @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130128-3894-1c6w94x>>}
11709
+  (0.1ms) SAVEPOINT active_record_1
11710
+ SQL (0.7ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:19:45 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", nil], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:19:45 UTC +00:00], ["width", nil]]
11711
+ SQLite3::ConstraintException: ckeditor_assets.data_file_name may not be NULL: INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11712
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11713
+ Completed 500 Internal Server Error in 6ms
11714
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11715
+  (0.1ms) rollback transaction
11716
+  (0.1ms) begin transaction
11717
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11718
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11719
+ Parameters: {"qqfile"=>"rails.tar.gz"}
11720
+  (0.1ms) SAVEPOINT active_record_1
11721
+ SQL (0.6ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:19:45 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", nil], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:19:45 UTC +00:00], ["width", nil]]
11722
+ SQLite3::ConstraintException: ckeditor_assets.data_file_name may not be NULL: INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11723
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11724
+ Completed 500 Internal Server Error in 6ms
11725
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11726
+  (0.1ms) rollback transaction
11727
+  (0.1ms) begin transaction
11728
+  (0.1ms) SAVEPOINT active_record_1
11729
+ SQL (0.5ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:19:45 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", nil], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:19:45 UTC +00:00], ["width", nil]]
11730
+ SQLite3::ConstraintException: ckeditor_assets.data_file_name may not be NULL: INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11731
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11732
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11733
+  (0.1ms) rollback transaction
11734
+  (0.1ms) begin transaction
11735
+ Processing by Ckeditor::AttachmentFilesController#index as HTML
11736
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') ORDER BY id desc
11737
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
11738
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (1.5ms)
11739
+ Completed 200 OK in 302ms (Views: 299.1ms | ActiveRecord: 0.3ms)
11740
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11741
+  (0.1ms) rollback transaction
11742
+  (0.1ms) begin transaction
11743
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11744
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11745
+ Parameters: {"qqfile"=>nil}
11746
+  (0.1ms) SAVEPOINT active_record_1
11747
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11748
+ Completed 200 OK in 10ms (Views: 3.9ms | ActiveRecord: 0.2ms)
11749
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11750
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11751
+  (0.1ms) rollback transaction
11752
+  (0.1ms) begin transaction
11753
+  (0.1ms) rollback transaction
11754
+  (0.1ms) begin transaction
11755
+  (0.0ms) rollback transaction
11756
+  (0.1ms) begin transaction
11757
+  (0.1ms) rollback transaction
11758
+  (0.1ms) begin transaction
11759
+  (0.1ms) rollback transaction
11760
+  (0.1ms) begin transaction
11761
+  (0.1ms) rollback transaction
11762
+  (0.1ms) begin transaction
11763
+  (0.1ms) rollback transaction
11764
+  (0.1ms) begin transaction
11765
+  (0.1ms) rollback transaction
11766
+  (0.1ms) begin transaction
11767
+  (0.1ms) rollback transaction
11768
+  (0.1ms) begin transaction
11769
+  (0.1ms) rollback transaction
11770
+  (0.1ms) begin transaction
11771
+  (0.1ms) rollback transaction
11772
+  (0.1ms) begin transaction
11773
+  (0.1ms) SAVEPOINT active_record_1
11774
+ SQL (0.6ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:19:46 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", nil], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:19:46 UTC +00:00], ["width", 50]]
11775
+ SQLite3::ConstraintException: ckeditor_assets.data_file_name may not be NULL: INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11776
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11777
+  (0.1ms) rollback transaction
11778
+  (0.1ms) begin transaction
11779
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11780
+ Processing by Ckeditor::PicturesController#create as HTML
11781
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xa8dc318 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130128-3894-jdextj>>, "CKEditor"=>"ckeditor_field"}
11782
+  (0.2ms) SAVEPOINT active_record_1
11783
+ SQL (0.9ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:19:47 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", nil], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:19:47 UTC +00:00], ["width", 50]]
11784
+ SQLite3::ConstraintException: ckeditor_assets.data_file_name may not be NULL: INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11785
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11786
+ Completed 500 Internal Server Error in 216ms
11787
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11788
+  (0.1ms) rollback transaction
11789
+  (0.1ms) begin transaction
11790
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11791
+ Processing by Ckeditor::PicturesController#create as HTML
11792
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0x9b4c5e0 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130128-3894-mj2me7>>}
11793
+  (0.1ms) SAVEPOINT active_record_1
11794
+ SQL (0.8ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:19:47 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", nil], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:19:47 UTC +00:00], ["width", 50]]
11795
+ SQLite3::ConstraintException: ckeditor_assets.data_file_name may not be NULL: INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11796
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11797
+ Completed 500 Internal Server Error in 163ms
11798
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11799
+  (0.1ms) rollback transaction
11800
+  (0.1ms) begin transaction
11801
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11802
+ Processing by Ckeditor::PicturesController#create as HTML
11803
+ Parameters: {"qqfile"=>"rails.png"}
11804
+  (0.1ms) SAVEPOINT active_record_1
11805
+ SQL (0.7ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:19:47 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", nil], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:19:47 UTC +00:00], ["width", 50]]
11806
+ SQLite3::ConstraintException: ckeditor_assets.data_file_name may not be NULL: INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11807
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11808
+ Completed 500 Internal Server Error in 160ms
11809
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11810
+  (0.1ms) rollback transaction
11811
+  (0.1ms) begin transaction
11812
+  (0.2ms) SAVEPOINT active_record_1
11813
+ SQL (0.8ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:19:47 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", nil], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:19:47 UTC +00:00], ["width", 50]]
11814
+ SQLite3::ConstraintException: ckeditor_assets.data_file_name may not be NULL: INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11815
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11816
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11817
+  (0.1ms) rollback transaction
11818
+  (0.1ms) begin transaction
11819
+ Processing by Ckeditor::PicturesController#index as HTML
11820
+ Ckeditor::Picture Load (0.4ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') ORDER BY id desc
11821
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
11822
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (0.8ms)
11823
+ Completed 200 OK in 29ms (Views: 26.2ms | ActiveRecord: 0.4ms)
11824
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11825
+  (0.1ms) rollback transaction
11826
+  (0.1ms) begin transaction
11827
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11828
+ Processing by Ckeditor::PicturesController#create as HTML
11829
+ Parameters: {"qqfile"=>nil}
11830
+  (0.1ms) SAVEPOINT active_record_1
11831
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
11832
+ Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 0.4ms)
11833
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11834
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11835
+  (0.1ms) rollback transaction
11836
+  (0.1ms) begin transaction
11837
+  (0.1ms) SAVEPOINT active_record_1
11838
+ SQL (0.5ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:19:47 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:19:47 UTC +00:00]]
11839
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11840
+ Processing by PostsController#new as HTML
11841
+ Rendered posts/_form.html.erb (7.9ms)
11842
+ Completed 200 OK in 32ms (Views: 31.1ms | ActiveRecord: 0.0ms)
11843
+  (0.1ms) SAVEPOINT active_record_1
11844
+ SQL (0.2ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11845
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11846
+  (0.1ms) rollback transaction
11847
+  (0.1ms) begin transaction
11848
+  (0.1ms) SAVEPOINT active_record_1
11849
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:19:47 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:19:47 UTC +00:00]]
11850
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11851
+ Processing by PostsController#index as HTML
11852
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
11853
+ Completed 200 OK in 22ms (Views: 19.8ms | ActiveRecord: 0.2ms)
11854
+  (0.1ms) SAVEPOINT active_record_1
11855
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11857
+  (0.1ms) rollback transaction
11858
+  (0.1ms) begin transaction
11859
+  (0.1ms) SAVEPOINT active_record_1
11860
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:19:47 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:19:47 UTC +00:00]]
11861
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11862
+ Processing by PostsController#index as HTML
11863
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" 
11864
+ Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
11865
+  (0.1ms) SAVEPOINT active_record_1
11866
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11868
+  (0.1ms) rollback transaction
11869
+  (0.1ms) begin transaction
11870
+  (0.0ms) SAVEPOINT active_record_1
11871
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:19:48 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:19:48 UTC +00:00]]
11872
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11873
+ Processing by PostsController#edit as HTML
11874
+ Parameters: {"id"=>"1"}
11875
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
11876
+ Rendered posts/_form.html.erb (5.1ms)
11877
+ Completed 200 OK in 13ms (Views: 10.1ms | ActiveRecord: 0.3ms)
11878
+  (0.1ms) SAVEPOINT active_record_1
11879
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11880
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11881
+  (0.1ms) rollback transaction
11882
+  (0.1ms) begin transaction
11883
+  (0.1ms) rollback transaction
11884
+  (0.1ms) begin transaction
11885
+  (0.1ms) rollback transaction
11886
+  (0.1ms) select sqlite_version(*)
11887
+  (0.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
11888
+  (0.0ms) PRAGMA index_list("schema_migrations")
11889
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
11890
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
11891
+ Migrating to CreatePosts (20110623120047)
11892
+  (0.1ms) begin transaction
11893
+  (0.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "info" text, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
11894
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110623120047')
11895
+  (0.1ms) commit transaction
11896
+  (0.5ms) CREATE TABLE "ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
11897
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
11898
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
11899
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
11900
+  (0.1ms) PRAGMA index_info('idx_ckeditor_assetable_type')
11901
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")
11902
+  (0.2ms) begin transaction
11903
+  (0.1ms) SAVEPOINT active_record_1
11904
+ SQL (2.4ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:23:05 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", "rails.tar.gz"], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:23:05 UTC +00:00], ["width", nil]]
11905
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11906
+  (0.1ms) SAVEPOINT active_record_1
11907
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
11908
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11909
+  (0.1ms) rollback transaction
11910
+  (0.1ms) begin transaction
11911
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11912
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11913
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xaec69cc @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130128-4271-1c30n3r>>, "CKEditor"=>"ckeditor_field"}
11914
+  (0.1ms) SAVEPOINT active_record_1
11915
+ SQL (0.5ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:23:05 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", "rails.tar.gz"], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:23:05 UTC +00:00], ["width", nil]]
11916
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11917
+ Rendered text template (0.0ms)
11918
+ Completed 200 OK in 156ms (Views: 75.3ms | ActiveRecord: 0.7ms)
11919
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11920
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11921
+  (0.1ms) SAVEPOINT active_record_1
11922
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
11923
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11924
+  (0.1ms) rollback transaction
11925
+  (0.1ms) begin transaction
11926
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11927
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11928
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xae6742c @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130128-4271-1lek5ik>>}
11929
+  (0.1ms) SAVEPOINT active_record_1
11930
+ SQL (0.6ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:23:05 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", "rails.tar.gz"], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:23:05 UTC +00:00], ["width", nil]]
11931
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11932
+ Completed 200 OK in 9ms (Views: 0.5ms | ActiveRecord: 0.8ms)
11933
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11934
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11935
+  (0.1ms) SAVEPOINT active_record_1
11936
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
11937
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11938
+  (0.1ms) rollback transaction
11939
+  (0.1ms) begin transaction
11940
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11941
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11942
+ Parameters: {"qqfile"=>"rails.tar.gz"}
11943
+  (0.1ms) SAVEPOINT active_record_1
11944
+ SQL (0.4ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:23:05 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", "rails.tar.gz"], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:23:05 UTC +00:00], ["width", nil]]
11945
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11946
+ Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 0.6ms)
11947
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11948
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11949
+  (0.1ms) SAVEPOINT active_record_1
11950
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
11951
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11952
+  (0.1ms) rollback transaction
11953
+  (0.1ms) begin transaction
11954
+  (0.1ms) SAVEPOINT active_record_1
11955
+ SQL (0.5ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:23:05 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", "rails.tar.gz"], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:23:05 UTC +00:00], ["width", nil]]
11956
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11957
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11958
+ Processing by Ckeditor::AttachmentFilesController#destroy as HTML
11959
+ Parameters: {"id"=>"1"}
11960
+ Ckeditor::AttachmentFile Load (0.4ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? LIMIT 1 [["id", "1"]]
11961
+  (0.1ms) SAVEPOINT active_record_1
11962
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
11963
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11964
+ Redirected to http://test.host/ckeditor/attachment_files
11965
+ Completed 302 Found in 27ms (ActiveRecord: 0.0ms)
11966
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11967
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11968
+  (0.1ms) rollback transaction
11969
+  (0.1ms) begin transaction
11970
+ Processing by Ckeditor::AttachmentFilesController#index as HTML
11971
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') ORDER BY id desc
11972
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
11973
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (1.5ms)
11974
+ Completed 200 OK in 97ms (Views: 94.1ms | ActiveRecord: 0.3ms)
11975
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11976
+  (0.1ms) rollback transaction
11977
+  (0.1ms) begin transaction
11978
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11979
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11980
+ Parameters: {"qqfile"=>nil}
11981
+  (0.1ms) SAVEPOINT active_record_1
11982
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11983
+ Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 0.3ms)
11984
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11985
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11986
+  (0.1ms) rollback transaction
11987
+  (0.1ms) begin transaction
11988
+  (0.1ms) rollback transaction
11989
+  (0.1ms) begin transaction
11990
+  (0.1ms) rollback transaction
11991
+  (0.1ms) begin transaction
11992
+  (0.1ms) rollback transaction
11993
+  (0.1ms) begin transaction
11994
+  (0.1ms) rollback transaction
11995
+  (0.1ms) begin transaction
11996
+  (0.1ms) rollback transaction
11997
+  (0.1ms) begin transaction
11998
+  (0.1ms) rollback transaction
11999
+  (0.1ms) begin transaction
12000
+  (0.1ms) rollback transaction
12001
+  (0.1ms) begin transaction
12002
+  (0.1ms) rollback transaction
12003
+  (0.1ms) begin transaction
12004
+  (0.1ms) rollback transaction
12005
+  (0.1ms) begin transaction
12006
+  (0.1ms) rollback transaction
12007
+  (0.1ms) begin transaction
12008
+  (0.1ms) SAVEPOINT active_record_1
12009
+ SQL (0.5ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:23:06 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:23:06 UTC +00:00], ["width", 50]]
12010
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12011
+  (0.1ms) SAVEPOINT active_record_1
12012
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
12013
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12014
+  (0.1ms) rollback transaction
12015
+  (0.1ms) begin transaction
12016
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12017
+ Processing by Ckeditor::PicturesController#create as HTML
12018
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xaecfe50 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130128-4271-1myicc1>>, "CKEditor"=>"ckeditor_field"}
12019
+  (0.2ms) SAVEPOINT active_record_1
12020
+ SQL (0.6ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:23:06 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:23:06 UTC +00:00], ["width", 50]]
12021
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12022
+ Completed 200 OK in 257ms (Views: 5.7ms | ActiveRecord: 0.9ms)
12023
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12024
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12025
+  (0.1ms) SAVEPOINT active_record_1
12026
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
12027
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12028
+  (0.1ms) rollback transaction
12029
+  (0.1ms) begin transaction
12030
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12031
+ Processing by Ckeditor::PicturesController#create as HTML
12032
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xabe0ec4 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130128-4271-123bfgv>>}
12033
+  (0.1ms) SAVEPOINT active_record_1
12034
+ SQL (0.5ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:23:06 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:23:06 UTC +00:00], ["width", 50]]
12035
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12036
+ Completed 200 OK in 206ms (Views: 0.8ms | ActiveRecord: 0.8ms)
12037
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12038
+ Ckeditor::Picture Load (0.4ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12039
+  (0.1ms) SAVEPOINT active_record_1
12040
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
12041
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12042
+  (0.1ms) rollback transaction
12043
+  (0.1ms) begin transaction
12044
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12045
+ Processing by Ckeditor::PicturesController#create as HTML
12046
+ Parameters: {"qqfile"=>"rails.png"}
12047
+  (0.1ms) SAVEPOINT active_record_1
12048
+ SQL (0.5ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:23:06 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:23:06 UTC +00:00], ["width", 50]]
12049
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12050
+ Completed 200 OK in 294ms (Views: 0.6ms | ActiveRecord: 0.7ms)
12051
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12052
+ Ckeditor::Picture Load (0.4ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12053
+  (0.1ms) SAVEPOINT active_record_1
12054
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
12055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12056
+  (0.1ms) rollback transaction
12057
+  (0.1ms) begin transaction
12058
+  (0.1ms) SAVEPOINT active_record_1
12059
+ SQL (0.5ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:23:07 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:23:07 UTC +00:00], ["width", 50]]
12060
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12061
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12062
+ Processing by Ckeditor::PicturesController#destroy as HTML
12063
+ Parameters: {"id"=>"1"}
12064
+ Ckeditor::Picture Load (0.4ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? LIMIT 1 [["id", "1"]]
12065
+  (0.1ms) SAVEPOINT active_record_1
12066
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
12067
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12068
+ Redirected to http://test.host/ckeditor/pictures
12069
+ Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
12070
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12071
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12072
+  (0.1ms) rollback transaction
12073
+  (0.1ms) begin transaction
12074
+ Processing by Ckeditor::PicturesController#index as HTML
12075
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') ORDER BY id desc
12076
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
12077
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (0.8ms)
12078
+ Completed 200 OK in 16ms (Views: 12.9ms | ActiveRecord: 0.3ms)
12079
+ Ckeditor::Picture Load (0.4ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12080
+  (0.1ms) rollback transaction
12081
+  (0.1ms) begin transaction
12082
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12083
+ Processing by Ckeditor::PicturesController#create as HTML
12084
+ Parameters: {"qqfile"=>nil}
12085
+  (0.1ms) SAVEPOINT active_record_1
12086
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
12087
+ Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 0.2ms)
12088
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12089
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12090
+  (0.1ms) rollback transaction
12091
+  (0.1ms) begin transaction
12092
+  (0.1ms) SAVEPOINT active_record_1
12093
+ SQL (0.5ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:23:07 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:23:07 UTC +00:00]]
12094
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12095
+ Processing by PostsController#new as HTML
12096
+ Rendered posts/_form.html.erb (8.0ms)
12097
+ Completed 200 OK in 17ms (Views: 15.5ms | ActiveRecord: 0.0ms)
12098
+  (0.1ms) SAVEPOINT active_record_1
12099
+ SQL (0.3ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
12100
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12101
+  (0.1ms) rollback transaction
12102
+  (0.1ms) begin transaction
12103
+  (0.1ms) SAVEPOINT active_record_1
12104
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:23:07 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:23:07 UTC +00:00]]
12105
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12106
+ Processing by PostsController#index as HTML
12107
+ Post Load (0.3ms) SELECT "posts".* FROM "posts"
12108
+ Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.3ms)
12109
+  (0.1ms) SAVEPOINT active_record_1
12110
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
12111
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12112
+  (0.1ms) rollback transaction
12113
+  (0.1ms) begin transaction
12114
+  (0.1ms) SAVEPOINT active_record_1
12115
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:23:07 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:23:07 UTC +00:00]]
12116
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12117
+ Processing by PostsController#index as HTML
12118
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" 
12119
+ Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms)
12120
+  (0.1ms) SAVEPOINT active_record_1
12121
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
12122
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12123
+  (0.1ms) rollback transaction
12124
+  (0.1ms) begin transaction
12125
+  (0.1ms) SAVEPOINT active_record_1
12126
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:23:07 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:23:07 UTC +00:00]]
12127
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12128
+ Processing by PostsController#edit as HTML
12129
+ Parameters: {"id"=>"1"}
12130
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
12131
+ Rendered posts/_form.html.erb (5.4ms)
12132
+ Completed 200 OK in 13ms (Views: 10.6ms | ActiveRecord: 0.3ms)
12133
+  (0.1ms) SAVEPOINT active_record_1
12134
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
12135
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12136
+  (0.1ms) rollback transaction
12137
+  (0.1ms) begin transaction
12138
+  (0.1ms) rollback transaction
12139
+  (0.1ms) begin transaction
12140
+  (0.1ms) rollback transaction
12141
+  (0.1ms) select sqlite_version(*)
12142
+  (0.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12143
+  (0.0ms) PRAGMA index_list("schema_migrations")
12144
+  (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12145
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
12146
+ Migrating to CreatePosts (20110623120047)
12147
+  (0.1ms) begin transaction
12148
+  (0.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "info" text, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
12149
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110623120047')
12150
+  (0.1ms) commit transaction
12151
+  (0.4ms) CREATE TABLE "ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
12152
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
12153
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
12154
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
12155
+  (0.1ms) PRAGMA index_info('idx_ckeditor_assetable_type')
12156
+  (0.2ms) CREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")
12157
+  (0.1ms) begin transaction
12158
+  (0.1ms) SAVEPOINT active_record_1
12159
+ SQL (2.4ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:29:13 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", "rails.tar.gz"], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:29:13 UTC +00:00], ["width", nil]]
12160
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12161
+  (0.1ms) SAVEPOINT active_record_1
12162
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
12163
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12164
+  (0.1ms) rollback transaction
12165
+  (0.1ms) begin transaction
12166
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12167
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
12168
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xa86dcb0 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130128-4581-256wg7>>, "CKEditor"=>"ckeditor_field"}
12169
+  (0.1ms) SAVEPOINT active_record_1
12170
+ SQL (0.5ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:29:13 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", "rails.tar.gz"], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:29:13 UTC +00:00], ["width", nil]]
12171
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12172
+ Rendered text template (0.0ms)
12173
+ Completed 200 OK in 139ms (Views: 66.5ms | ActiveRecord: 0.7ms)
12174
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12175
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12176
+  (0.1ms) SAVEPOINT active_record_1
12177
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
12178
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12179
+  (0.1ms) rollback transaction
12180
+  (0.1ms) begin transaction
12181
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12182
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
12183
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xa7eee88 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130128-4581-1t5oped>>}
12184
+  (0.1ms) SAVEPOINT active_record_1
12185
+ SQL (0.5ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:29:13 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", "rails.tar.gz"], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:29:13 UTC +00:00], ["width", nil]]
12186
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12187
+ Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 0.7ms)
12188
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12189
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12190
+  (0.1ms) SAVEPOINT active_record_1
12191
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
12192
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12193
+  (0.1ms) rollback transaction
12194
+  (0.1ms) begin transaction
12195
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12196
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
12197
+ Parameters: {"qqfile"=>"rails.tar.gz"}
12198
+  (0.1ms) SAVEPOINT active_record_1
12199
+ SQL (0.4ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:29:13 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", "rails.tar.gz"], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:29:13 UTC +00:00], ["width", nil]]
12200
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12201
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 0.5ms)
12202
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12203
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12204
+  (0.1ms) SAVEPOINT active_record_1
12205
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
12206
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12207
+  (0.1ms) rollback transaction
12208
+  (0.1ms) begin transaction
12209
+  (0.2ms) SAVEPOINT active_record_1
12210
+ SQL (0.4ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:29:13 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", "rails.tar.gz"], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:29:13 UTC +00:00], ["width", nil]]
12211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12212
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12213
+ Processing by Ckeditor::AttachmentFilesController#destroy as HTML
12214
+ Parameters: {"id"=>"1"}
12215
+ Ckeditor::AttachmentFile Load (0.4ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? LIMIT 1 [["id", "1"]]
12216
+  (0.1ms) SAVEPOINT active_record_1
12217
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
12218
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12219
+ Redirected to http://test.host/ckeditor/attachment_files
12220
+ Completed 302 Found in 18ms (ActiveRecord: 0.0ms)
12221
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12222
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12223
+  (0.1ms) rollback transaction
12224
+  (0.1ms) begin transaction
12225
+ Processing by Ckeditor::AttachmentFilesController#index as HTML
12226
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') ORDER BY id desc
12227
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
12228
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (1.5ms)
12229
+ Completed 200 OK in 85ms (Views: 82.9ms | ActiveRecord: 0.3ms)
12230
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12231
+  (0.1ms) rollback transaction
12232
+  (0.1ms) begin transaction
12233
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12234
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
12235
+ Parameters: {"qqfile"=>nil}
12236
+  (0.1ms) SAVEPOINT active_record_1
12237
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
12238
+ Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.2ms)
12239
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12240
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12241
+  (0.1ms) rollback transaction
12242
+  (0.1ms) begin transaction
12243
+  (0.1ms) rollback transaction
12244
+  (0.1ms) begin transaction
12245
+  (0.0ms) rollback transaction
12246
+  (0.1ms) begin transaction
12247
+  (0.1ms) rollback transaction
12248
+  (0.1ms) begin transaction
12249
+  (0.1ms) rollback transaction
12250
+  (0.1ms) begin transaction
12251
+  (0.1ms) rollback transaction
12252
+  (0.1ms) begin transaction
12253
+  (0.1ms) rollback transaction
12254
+  (0.1ms) begin transaction
12255
+  (0.1ms) rollback transaction
12256
+  (0.1ms) begin transaction
12257
+  (0.1ms) rollback transaction
12258
+  (0.1ms) begin transaction
12259
+  (0.1ms) rollback transaction
12260
+  (0.1ms) begin transaction
12261
+  (0.1ms) rollback transaction
12262
+  (0.1ms) begin transaction
12263
+  (0.1ms) SAVEPOINT active_record_1
12264
+ SQL (0.6ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:29:14 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:29:14 UTC +00:00], ["width", 50]]
12265
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12266
+  (0.1ms) SAVEPOINT active_record_1
12267
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
12268
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12269
+  (0.1ms) rollback transaction
12270
+  (0.1ms) begin transaction
12271
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12272
+ Processing by Ckeditor::PicturesController#create as HTML
12273
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xa875488 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130128-4581-1iny99k>>, "CKEditor"=>"ckeditor_field"}
12274
+  (0.2ms) SAVEPOINT active_record_1
12275
+ SQL (0.6ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:29:14 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:29:14 UTC +00:00], ["width", 50]]
12276
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12277
+ Completed 200 OK in 218ms (Views: 1.5ms | ActiveRecord: 0.8ms)
12278
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12279
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12280
+  (0.1ms) SAVEPOINT active_record_1
12281
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
12282
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12283
+  (0.1ms) rollback transaction
12284
+  (0.1ms) begin transaction
12285
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12286
+ Processing by Ckeditor::PicturesController#create as HTML
12287
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xa5c5634 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130128-4581-1yhibif>>}
12288
+  (0.1ms) SAVEPOINT active_record_1
12289
+ SQL (0.5ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:29:14 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:29:14 UTC +00:00], ["width", 50]]
12290
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12291
+ Completed 200 OK in 156ms (Views: 0.6ms | ActiveRecord: 0.7ms)
12292
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12293
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12294
+  (0.1ms) SAVEPOINT active_record_1
12295
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
12296
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12297
+  (0.1ms) rollback transaction
12298
+  (0.1ms) begin transaction
12299
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12300
+ Processing by Ckeditor::PicturesController#create as HTML
12301
+ Parameters: {"qqfile"=>"rails.png"}
12302
+  (0.1ms) SAVEPOINT active_record_1
12303
+ SQL (0.4ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:29:14 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:29:14 UTC +00:00], ["width", 50]]
12304
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12305
+ Completed 200 OK in 216ms (Views: 0.6ms | ActiveRecord: 0.7ms)
12306
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12307
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12308
+  (0.1ms) SAVEPOINT active_record_1
12309
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
12310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12311
+  (0.1ms) rollback transaction
12312
+  (0.1ms) begin transaction
12313
+  (0.2ms) SAVEPOINT active_record_1
12314
+ SQL (0.5ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:29:14 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:29:14 UTC +00:00], ["width", 50]]
12315
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12316
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12317
+ Processing by Ckeditor::PicturesController#destroy as HTML
12318
+ Parameters: {"id"=>"1"}
12319
+ Ckeditor::Picture Load (0.4ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? LIMIT 1 [["id", "1"]]
12320
+  (0.1ms) SAVEPOINT active_record_1
12321
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
12322
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12323
+ Redirected to http://test.host/ckeditor/pictures
12324
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
12325
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12326
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12327
+  (0.1ms) rollback transaction
12328
+  (0.1ms) begin transaction
12329
+ Processing by Ckeditor::PicturesController#index as HTML
12330
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') ORDER BY id desc
12331
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
12332
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (0.7ms)
12333
+ Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.3ms)
12334
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12335
+  (0.1ms) rollback transaction
12336
+  (0.1ms) begin transaction
12337
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12338
+ Processing by Ckeditor::PicturesController#create as HTML
12339
+ Parameters: {"qqfile"=>nil}
12340
+  (0.1ms) SAVEPOINT active_record_1
12341
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
12342
+ Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.2ms)
12343
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12344
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12345
+  (0.1ms) rollback transaction
12346
+  (0.1ms) begin transaction
12347
+  (0.1ms) SAVEPOINT active_record_1
12348
+ SQL (0.5ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:29:14 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:29:14 UTC +00:00]]
12349
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12350
+ Processing by PostsController#new as HTML
12351
+ Rendered posts/_form.html.erb (7.8ms)
12352
+ Completed 200 OK in 15ms (Views: 14.5ms | ActiveRecord: 0.0ms)
12353
+  (0.1ms) SAVEPOINT active_record_1
12354
+ SQL (0.2ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
12355
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12356
+  (0.1ms) rollback transaction
12357
+  (0.1ms) begin transaction
12358
+  (0.1ms) SAVEPOINT active_record_1
12359
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:29:15 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:29:15 UTC +00:00]]
12360
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12361
+ Processing by PostsController#index as HTML
12362
+ Post Load (0.3ms) SELECT "posts".* FROM "posts"
12363
+ Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.3ms)
12364
+  (0.1ms) SAVEPOINT active_record_1
12365
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
12366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12367
+  (0.1ms) rollback transaction
12368
+  (0.1ms) begin transaction
12369
+  (0.1ms) SAVEPOINT active_record_1
12370
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:29:15 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:29:15 UTC +00:00]]
12371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12372
+ Processing by PostsController#index as HTML
12373
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" 
12374
+ Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.2ms)
12375
+  (0.1ms) SAVEPOINT active_record_1
12376
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
12377
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12378
+  (0.1ms) rollback transaction
12379
+  (0.1ms) begin transaction
12380
+  (0.1ms) SAVEPOINT active_record_1
12381
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:29:15 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:29:15 UTC +00:00]]
12382
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12383
+ Processing by PostsController#edit as HTML
12384
+ Parameters: {"id"=>"1"}
12385
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
12386
+ Rendered posts/_form.html.erb (5.4ms)
12387
+ Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.3ms)
12388
+  (0.1ms) SAVEPOINT active_record_1
12389
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
12390
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12391
+  (0.1ms) rollback transaction
12392
+  (0.1ms) begin transaction
12393
+  (0.1ms) rollback transaction
12394
+  (0.1ms) begin transaction
12395
+  (0.1ms) rollback transaction
12396
+  (0.1ms) select sqlite_version(*)
12397
+  (0.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12398
+  (0.1ms) PRAGMA index_list("schema_migrations")
12399
+  (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12400
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
12401
+ Migrating to CreatePosts (20110623120047)
12402
+  (0.1ms) begin transaction
12403
+  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "info" text, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
12404
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110623120047')
12405
+  (0.1ms) commit transaction
12406
+  (0.4ms) CREATE TABLE "ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
12407
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
12408
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
12409
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
12410
+  (0.1ms) PRAGMA index_info('idx_ckeditor_assetable_type')
12411
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")
12412
+  (0.1ms) begin transaction
12413
+  (0.1ms) SAVEPOINT active_record_1
12414
+ SQL (10.7ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:29:47 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", "rails_tar.gz"], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:29:47 UTC +00:00], ["width", nil]]
12415
+ [paperclip] Saving attachments.
12416
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12417
+  (0.1ms) SAVEPOINT active_record_1
12418
+ [paperclip] Scheduling attachments for deletion.
12419
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
12420
+ [paperclip] Deleting attachments.
12421
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
12422
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12423
+  (0.1ms) rollback transaction
12424
+  (0.1ms) begin transaction
12425
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12426
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
12427
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xaf02d78 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130128-4742-6326r9>>, "CKEditor"=>"ckeditor_field"}
12428
+  (0.1ms) SAVEPOINT active_record_1
12429
+ SQL (0.5ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:29:47 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", "rails_tar.gz"], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:29:47 UTC +00:00], ["width", nil]]
12430
+ [paperclip] Saving attachments.
12431
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12432
+ Rendered text template (0.0ms)
12433
+ Completed 200 OK in 189ms (Views: 84.9ms | ActiveRecord: 0.7ms)
12434
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12435
+ Ckeditor::AttachmentFile Load (0.4ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12436
+  (0.1ms) SAVEPOINT active_record_1
12437
+ [paperclip] Scheduling attachments for deletion.
12438
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
12439
+ [paperclip] Deleting attachments.
12440
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
12441
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12442
+  (0.1ms) rollback transaction
12443
+  (0.1ms) begin transaction
12444
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12445
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
12446
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xa7e73b8 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130128-4742-u6qv7w>>}
12447
+  (0.1ms) SAVEPOINT active_record_1
12448
+ SQL (0.5ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:29:47 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", "rails_tar.gz"], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:29:47 UTC +00:00], ["width", nil]]
12449
+ [paperclip] Saving attachments.
12450
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12451
+ Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 0.7ms)
12452
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12453
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12454
+  (0.1ms) SAVEPOINT active_record_1
12455
+ [paperclip] Scheduling attachments for deletion.
12456
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
12457
+ [paperclip] Deleting attachments.
12458
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
12459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12460
+  (0.1ms) rollback transaction
12461
+  (0.1ms) begin transaction
12462
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12463
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
12464
+ Parameters: {"qqfile"=>"rails.tar.gz"}
12465
+  (0.1ms) SAVEPOINT active_record_1
12466
+ SQL (0.5ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:29:47 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", "rails_tar.gz"], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:29:47 UTC +00:00], ["width", nil]]
12467
+ [paperclip] Saving attachments.
12468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12469
+ Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 0.7ms)
12470
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12471
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12472
+  (0.1ms) SAVEPOINT active_record_1
12473
+ [paperclip] Scheduling attachments for deletion.
12474
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
12475
+ [paperclip] Deleting attachments.
12476
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
12477
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12478
+  (0.1ms) rollback transaction
12479
+  (0.1ms) begin transaction
12480
+  (0.1ms) SAVEPOINT active_record_1
12481
+ SQL (1.7ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:29:47 UTC +00:00], ["data_content_type", "application/x-gzip"], ["data_file_name", "rails_tar.gz"], ["data_file_size", 6823], ["height", nil], ["type", "Ckeditor::AttachmentFile"], ["updated_at", Mon, 28 Jan 2013 10:29:47 UTC +00:00], ["width", nil]]
12482
+ [paperclip] Saving attachments.
12483
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12484
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12485
+ Processing by Ckeditor::AttachmentFilesController#destroy as HTML
12486
+ Parameters: {"id"=>"1"}
12487
+ Ckeditor::AttachmentFile Load (0.4ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? LIMIT 1 [["id", "1"]]
12488
+  (0.1ms) SAVEPOINT active_record_1
12489
+ [paperclip] Scheduling attachments for deletion.
12490
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
12491
+ [paperclip] Deleting attachments.
12492
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
12493
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12494
+ Redirected to http://test.host/ckeditor/attachment_files
12495
+ Completed 302 Found in 90ms (ActiveRecord: 0.0ms)
12496
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12497
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12498
+  (0.1ms) rollback transaction
12499
+  (0.1ms) begin transaction
12500
+ Processing by Ckeditor::AttachmentFilesController#index as HTML
12501
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') ORDER BY id desc
12502
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
12503
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (1.9ms)
12504
+ Completed 200 OK in 82ms (Views: 79.4ms | ActiveRecord: 0.3ms)
12505
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12506
+  (0.1ms) rollback transaction
12507
+  (0.1ms) begin transaction
12508
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12509
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
12510
+ Parameters: {"qqfile"=>nil}
12511
+  (0.1ms) SAVEPOINT active_record_1
12512
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
12513
+ Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.2ms)
12514
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12515
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
12516
+  (0.1ms) rollback transaction
12517
+  (0.1ms) begin transaction
12518
+  (0.1ms) rollback transaction
12519
+  (0.1ms) begin transaction
12520
+  (0.0ms) rollback transaction
12521
+  (0.1ms) begin transaction
12522
+  (0.1ms) rollback transaction
12523
+  (0.1ms) begin transaction
12524
+  (0.1ms) rollback transaction
12525
+  (0.1ms) begin transaction
12526
+  (0.1ms) rollback transaction
12527
+  (0.1ms) begin transaction
12528
+  (0.1ms) rollback transaction
12529
+  (0.1ms) begin transaction
12530
+  (0.1ms) rollback transaction
12531
+  (0.1ms) begin transaction
12532
+  (0.1ms) rollback transaction
12533
+  (0.1ms) begin transaction
12534
+  (0.1ms) rollback transaction
12535
+  (0.1ms) begin transaction
12536
+  (0.1ms) rollback transaction
12537
+  (0.2ms) begin transaction
12538
+ Command :: identify -format %wx%h '/tmp/rails20130128-4742-wef2vq.png[0]'
12539
+ Command :: convert '/tmp/rails20130128-4742-wef2vq.png[0]' -resize "800>" '/tmp/rails20130128-4742-wef2vq20130128-4742-cyuw84'
12540
+ Command :: identify -format %wx%h '/tmp/rails20130128-4742-wef2vq.png[0]'
12541
+ Command :: convert '/tmp/rails20130128-4742-wef2vq.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130128-4742-wef2vq20130128-4742-et3isq'
12542
+  (0.2ms) SAVEPOINT active_record_1
12543
+ Command :: identify -format %wx%h '/tmp/rails20130128-4742-wef2vq.png[0]'
12544
+ SQL (0.7ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:29:47 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:29:47 UTC +00:00], ["width", 50]]
12545
+ [paperclip] Saving attachments.
12546
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12547
+  (0.1ms) SAVEPOINT active_record_1
12548
+ [paperclip] Scheduling attachments for deletion.
12549
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
12550
+ [paperclip] Deleting attachments.
12551
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
12552
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
12553
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
12554
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12555
+  (0.1ms) rollback transaction
12556
+  (0.1ms) begin transaction
12557
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12558
+ Processing by Ckeditor::PicturesController#create as HTML
12559
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xb50d484 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130128-4742-1xcstuj>>, "CKEditor"=>"ckeditor_field"}
12560
+ Command :: identify -format %wx%h '/tmp/rails20130128-4742-18tdgi3.png[0]'
12561
+ Command :: convert '/tmp/rails20130128-4742-18tdgi3.png[0]' -resize "800>" '/tmp/rails20130128-4742-18tdgi320130128-4742-c7ou22'
12562
+ Command :: identify -format %wx%h '/tmp/rails20130128-4742-18tdgi3.png[0]'
12563
+ Command :: convert '/tmp/rails20130128-4742-18tdgi3.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130128-4742-18tdgi320130128-4742-1cndiqt'
12564
+  (0.2ms) SAVEPOINT active_record_1
12565
+ Command :: identify -format %wx%h '/tmp/rails20130128-4742-18tdgi3.png[0]'
12566
+ SQL (0.8ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:29:48 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:29:48 UTC +00:00], ["width", 50]]
12567
+ [paperclip] Saving attachments.
12568
+  (0.8ms) RELEASE SAVEPOINT active_record_1
12569
+ Completed 200 OK in 147ms (Views: 1.4ms | ActiveRecord: 1.8ms)
12570
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12571
+ Ckeditor::Picture Load (0.4ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12572
+  (0.1ms) SAVEPOINT active_record_1
12573
+ [paperclip] Scheduling attachments for deletion.
12574
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
12575
+ [paperclip] Deleting attachments.
12576
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
12577
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
12578
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
12579
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12580
+  (0.2ms) rollback transaction
12581
+  (0.1ms) begin transaction
12582
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12583
+ Processing by Ckeditor::PicturesController#create as HTML
12584
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xbb9dcf4 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130128-4742-ii8puo>>}
12585
+ Command :: identify -format %wx%h '/tmp/rails20130128-4742-cpnunc.png[0]'
12586
+ Command :: convert '/tmp/rails20130128-4742-cpnunc.png[0]' -resize "800>" '/tmp/rails20130128-4742-cpnunc20130128-4742-h9fl39'
12587
+ Command :: identify -format %wx%h '/tmp/rails20130128-4742-cpnunc.png[0]'
12588
+ Command :: convert '/tmp/rails20130128-4742-cpnunc.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130128-4742-cpnunc20130128-4742-1hcfc1z'
12589
+  (0.2ms) SAVEPOINT active_record_1
12590
+ Command :: identify -format %wx%h '/tmp/rails20130128-4742-cpnunc.png[0]'
12591
+ SQL (0.6ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:29:48 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:29:48 UTC +00:00], ["width", 50]]
12592
+ [paperclip] Saving attachments.
12593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12594
+ Completed 200 OK in 179ms (Views: 0.8ms | ActiveRecord: 0.9ms)
12595
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12596
+ Ckeditor::Picture Load (0.6ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12597
+  (0.1ms) SAVEPOINT active_record_1
12598
+ [paperclip] Scheduling attachments for deletion.
12599
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
12600
+ [paperclip] Deleting attachments.
12601
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
12602
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
12603
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
12604
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12605
+  (0.1ms) rollback transaction
12606
+  (0.1ms) begin transaction
12607
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12608
+ Processing by Ckeditor::PicturesController#create as HTML
12609
+ Parameters: {"qqfile"=>"rails.png"}
12610
+ Command :: identify -format %wx%h '/tmp/rails20130128-4742-1t9hobh.png[0]'
12611
+ Command :: convert '/tmp/rails20130128-4742-1t9hobh.png[0]' -resize "800>" '/tmp/rails20130128-4742-1t9hobh20130128-4742-1v6bwyd'
12612
+ Command :: identify -format %wx%h '/tmp/rails20130128-4742-1t9hobh.png[0]'
12613
+ Command :: convert '/tmp/rails20130128-4742-1t9hobh.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130128-4742-1t9hobh20130128-4742-8plnhb'
12614
+  (0.2ms) SAVEPOINT active_record_1
12615
+ Command :: identify -format %wx%h '/tmp/rails20130128-4742-1t9hobh.png[0]'
12616
+ SQL (0.6ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", false], ["created_at", Mon, 28 Jan 2013 10:29:48 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:29:48 UTC +00:00], ["width", 50]]
12617
+ [paperclip] Saving attachments.
12618
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12619
+ Completed 200 OK in 226ms (Views: 0.7ms | ActiveRecord: 0.9ms)
12620
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12621
+ Ckeditor::Picture Load (0.4ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12622
+  (0.1ms) SAVEPOINT active_record_1
12623
+ [paperclip] Scheduling attachments for deletion.
12624
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
12625
+ [paperclip] Deleting attachments.
12626
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
12627
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
12628
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
12629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12630
+  (0.1ms) rollback transaction
12631
+  (0.1ms) begin transaction
12632
+ Command :: identify -format %wx%h '/tmp/rails20130128-4742-suyqw3.png[0]'
12633
+ Command :: convert '/tmp/rails20130128-4742-suyqw3.png[0]' -resize "800>" '/tmp/rails20130128-4742-suyqw320130128-4742-7zwua7'
12634
+ Command :: identify -format %wx%h '/tmp/rails20130128-4742-suyqw3.png[0]'
12635
+ Command :: convert '/tmp/rails20130128-4742-suyqw3.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130128-4742-suyqw320130128-4742-1ky4cfy'
12636
+  (0.2ms) SAVEPOINT active_record_1
12637
+ Command :: identify -format %wx%h '/tmp/rails20130128-4742-suyqw3.png[0]'
12638
+ SQL (0.6ms) INSERT INTO "ckeditor_assets" ("assetable_id", "assetable_type", "created_at", "data_content_type", "data_file_name", "data_file_size", "height", "type", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["assetable_id", nil], ["assetable_type", nil], ["created_at", Mon, 28 Jan 2013 10:29:49 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Mon, 28 Jan 2013 10:29:49 UTC +00:00], ["width", 50]]
12639
+ [paperclip] Saving attachments.
12640
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12641
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12642
+ Processing by Ckeditor::PicturesController#destroy as HTML
12643
+ Parameters: {"id"=>"1"}
12644
+ Ckeditor::Picture Load (0.5ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? LIMIT 1 [["id", "1"]]
12645
+  (0.1ms) SAVEPOINT active_record_1
12646
+ [paperclip] Scheduling attachments for deletion.
12647
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
12648
+ [paperclip] Deleting attachments.
12649
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
12650
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
12651
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
12652
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12653
+ Redirected to http://test.host/ckeditor/pictures
12654
+ Completed 302 Found in 13ms (ActiveRecord: 0.0ms)
12655
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12656
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12657
+  (0.1ms) rollback transaction
12658
+  (0.1ms) begin transaction
12659
+ Processing by Ckeditor::PicturesController#index as HTML
12660
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') ORDER BY id desc
12661
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
12662
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (0.8ms)
12663
+ Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.3ms)
12664
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12665
+  (0.1ms) rollback transaction
12666
+  (0.1ms) begin transaction
12667
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12668
+ Processing by Ckeditor::PicturesController#create as HTML
12669
+ Parameters: {"qqfile"=>nil}
12670
+  (0.1ms) SAVEPOINT active_record_1
12671
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
12672
+ Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 0.2ms)
12673
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12674
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
12675
+  (0.1ms) rollback transaction
12676
+  (0.1ms) begin transaction
12677
+  (0.1ms) SAVEPOINT active_record_1
12678
+ SQL (0.6ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:29:49 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:29:49 UTC +00:00]]
12679
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12680
+ Processing by PostsController#new as HTML
12681
+ Rendered posts/_form.html.erb (7.5ms)
12682
+ Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.0ms)
12683
+  (0.1ms) SAVEPOINT active_record_1
12684
+ SQL (0.2ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
12685
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12686
+  (0.1ms) rollback transaction
12687
+  (0.1ms) begin transaction
12688
+  (0.1ms) SAVEPOINT active_record_1
12689
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:29:49 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:29:49 UTC +00:00]]
12690
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12691
+ Processing by PostsController#index as HTML
12692
+ Post Load (0.3ms) SELECT "posts".* FROM "posts"
12693
+ Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.3ms)
12694
+  (0.1ms) SAVEPOINT active_record_1
12695
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
12696
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12697
+  (0.1ms) rollback transaction
12698
+  (0.1ms) begin transaction
12699
+  (0.1ms) SAVEPOINT active_record_1
12700
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:29:49 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:29:49 UTC +00:00]]
12701
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12702
+ Processing by PostsController#index as HTML
12703
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" 
12704
+ Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms)
12705
+  (0.1ms) SAVEPOINT active_record_1
12706
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
12707
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12708
+  (0.1ms) rollback transaction
12709
+  (0.1ms) begin transaction
12710
+  (0.1ms) SAVEPOINT active_record_1
12711
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Mon, 28 Jan 2013 10:29:49 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Mon, 28 Jan 2013 10:29:49 UTC +00:00]]
12712
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12713
+ Processing by PostsController#edit as HTML
12714
+ Parameters: {"id"=>"1"}
12715
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
12716
+ Rendered posts/_form.html.erb (6.1ms)
12717
+ Completed 200 OK in 14ms (Views: 11.3ms | ActiveRecord: 0.3ms)
12718
+  (0.1ms) SAVEPOINT active_record_1
12719
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
12720
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12721
+  (0.1ms) rollback transaction
12722
+  (0.1ms) begin transaction
12723
+  (0.1ms) rollback transaction
12724
+  (0.1ms) begin transaction
12725
+  (0.1ms) rollback transaction