ckeditor 3.7.3 → 4.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (436) hide show
  1. data/README.rdoc +38 -91
  2. data/app/assets/javascripts/ckeditor/config.js +1 -5
  3. data/app/assets/javascripts/ckeditor/{init.js → init.js.erb} +1 -1
  4. data/app/controllers/ckeditor/application_controller.rb +2 -8
  5. data/app/controllers/ckeditor/attachment_files_controller.rb +5 -0
  6. data/app/controllers/ckeditor/pictures_controller.rb +5 -0
  7. data/app/views/ckeditor/shared/_asset.html.erb +4 -4
  8. data/lib/ckeditor.rb +72 -7
  9. data/lib/ckeditor/engine.rb +6 -5
  10. data/lib/ckeditor/helpers/controllers.rb +7 -3
  11. data/lib/ckeditor/helpers/form_helper.rb +6 -10
  12. data/lib/ckeditor/hooks/cancan.rb +46 -0
  13. data/lib/ckeditor/hooks/simple_form.rb +3 -0
  14. data/lib/ckeditor/orm/base.rb +4 -0
  15. data/lib/ckeditor/utils.rb +12 -7
  16. data/lib/ckeditor/version.rb +2 -2
  17. data/lib/generators/ckeditor/install_generator.rb +2 -2
  18. data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/asset.rb +2 -2
  19. data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb +4 -4
  20. data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/picture.rb +8 -8
  21. data/lib/generators/ckeditor/templates/ckeditor.rb +3 -0
  22. data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/asset.rb +1 -1
  23. data/test/dummy/app/views/posts/_form.html.erb +3 -3
  24. data/test/dummy/log/test.log +2843 -0
  25. data/test/functional/posts_controller_test.rb +3 -3
  26. data/test/tmp/config/initializers/ckeditor.rb +3 -0
  27. data/vendor/assets/javascripts/ckeditor/CHANGES.md +12 -0
  28. data/vendor/assets/javascripts/ckeditor/{LICENSE.html → LICENSE.md} +26 -89
  29. data/vendor/assets/javascripts/ckeditor/README.md +39 -0
  30. data/vendor/assets/javascripts/ckeditor/build-config.js +158 -0
  31. data/vendor/assets/javascripts/ckeditor/ckeditor.js +847 -152
  32. data/vendor/assets/javascripts/ckeditor/config.js +10 -11
  33. data/vendor/assets/javascripts/ckeditor/contents.css +72 -4
  34. data/vendor/assets/javascripts/ckeditor/lang/af.js +2 -3
  35. data/vendor/assets/javascripts/ckeditor/lang/ar.js +2 -3
  36. data/vendor/assets/javascripts/ckeditor/lang/bg.js +2 -3
  37. data/vendor/assets/javascripts/ckeditor/lang/bn.js +2 -3
  38. data/vendor/assets/javascripts/ckeditor/lang/bs.js +2 -3
  39. data/vendor/assets/javascripts/ckeditor/lang/ca.js +2 -3
  40. data/vendor/assets/javascripts/ckeditor/lang/cs.js +2 -3
  41. data/vendor/assets/javascripts/ckeditor/lang/cy.js +2 -3
  42. data/vendor/assets/javascripts/ckeditor/lang/da.js +2 -3
  43. data/vendor/assets/javascripts/ckeditor/lang/de.js +2 -3
  44. data/vendor/assets/javascripts/ckeditor/lang/el.js +2 -3
  45. data/vendor/assets/javascripts/ckeditor/lang/en-au.js +2 -3
  46. data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +2 -3
  47. data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +2 -3
  48. data/vendor/assets/javascripts/ckeditor/lang/en.js +2 -3
  49. data/vendor/assets/javascripts/ckeditor/lang/eo.js +2 -3
  50. data/vendor/assets/javascripts/ckeditor/lang/es.js +2 -3
  51. data/vendor/assets/javascripts/ckeditor/lang/et.js +2 -3
  52. data/vendor/assets/javascripts/ckeditor/lang/eu.js +2 -3
  53. data/vendor/assets/javascripts/ckeditor/lang/fa.js +2 -3
  54. data/vendor/assets/javascripts/ckeditor/lang/fi.js +2 -3
  55. data/vendor/assets/javascripts/ckeditor/lang/fo.js +2 -3
  56. data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +2 -3
  57. data/vendor/assets/javascripts/ckeditor/lang/fr.js +2 -3
  58. data/vendor/assets/javascripts/ckeditor/lang/gl.js +2 -3
  59. data/vendor/assets/javascripts/ckeditor/lang/gu.js +2 -3
  60. data/vendor/assets/javascripts/ckeditor/lang/he.js +2 -3
  61. data/vendor/assets/javascripts/ckeditor/lang/hi.js +2 -3
  62. data/vendor/assets/javascripts/ckeditor/lang/hr.js +2 -3
  63. data/vendor/assets/javascripts/ckeditor/lang/hu.js +2 -3
  64. data/vendor/assets/javascripts/ckeditor/lang/is.js +2 -3
  65. data/vendor/assets/javascripts/ckeditor/lang/it.js +2 -3
  66. data/vendor/assets/javascripts/ckeditor/lang/ja.js +2 -3
  67. data/vendor/assets/javascripts/ckeditor/lang/ka.js +2 -3
  68. data/vendor/assets/javascripts/ckeditor/lang/km.js +2 -3
  69. data/vendor/assets/javascripts/ckeditor/lang/ko.js +2 -3
  70. data/vendor/assets/javascripts/ckeditor/lang/ku.js +5 -0
  71. data/vendor/assets/javascripts/ckeditor/lang/lt.js +2 -3
  72. data/vendor/assets/javascripts/ckeditor/lang/lv.js +2 -3
  73. data/vendor/assets/javascripts/ckeditor/lang/mk.js +2 -3
  74. data/vendor/assets/javascripts/ckeditor/lang/mn.js +2 -3
  75. data/vendor/assets/javascripts/ckeditor/lang/ms.js +2 -3
  76. data/vendor/assets/javascripts/ckeditor/lang/nb.js +2 -3
  77. data/vendor/assets/javascripts/ckeditor/lang/nl.js +2 -3
  78. data/vendor/assets/javascripts/ckeditor/lang/no.js +2 -3
  79. data/vendor/assets/javascripts/ckeditor/lang/pl.js +2 -3
  80. data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +2 -3
  81. data/vendor/assets/javascripts/ckeditor/lang/pt.js +2 -3
  82. data/vendor/assets/javascripts/ckeditor/lang/ro.js +2 -3
  83. data/vendor/assets/javascripts/ckeditor/lang/ru.js +2 -3
  84. data/vendor/assets/javascripts/ckeditor/lang/sk.js +2 -3
  85. data/vendor/assets/javascripts/ckeditor/lang/sl.js +2 -3
  86. data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +2 -3
  87. data/vendor/assets/javascripts/ckeditor/lang/sr.js +2 -3
  88. data/vendor/assets/javascripts/ckeditor/lang/sv.js +2 -3
  89. data/vendor/assets/javascripts/ckeditor/lang/th.js +2 -3
  90. data/vendor/assets/javascripts/ckeditor/lang/tr.js +2 -3
  91. data/vendor/assets/javascripts/ckeditor/lang/ug.js +2 -3
  92. data/vendor/assets/javascripts/ckeditor/lang/uk.js +2 -3
  93. data/vendor/assets/javascripts/ckeditor/lang/vi.js +2 -3
  94. data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +2 -3
  95. data/vendor/assets/javascripts/ckeditor/lang/zh.js +2 -3
  96. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -7
  97. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/{lang → dialogs/lang}/_translationstatus.txt +0 -0
  98. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +8 -0
  99. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +8 -0
  100. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +8 -0
  101. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +9 -0
  102. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +8 -0
  103. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +8 -0
  104. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +9 -0
  105. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +9 -0
  106. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +8 -0
  107. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +9 -0
  108. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +8 -0
  109. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +8 -0
  110. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +9 -0
  111. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +9 -0
  112. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +8 -0
  113. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +8 -0
  114. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +8 -0
  115. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +8 -0
  116. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +8 -0
  117. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +9 -0
  118. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +9 -0
  119. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +8 -0
  120. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +9 -0
  121. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +8 -0
  122. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +8 -0
  123. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +8 -0
  124. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +9 -0
  125. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +8 -0
  126. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +8 -0
  127. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +8 -0
  128. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +8 -0
  129. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +8 -0
  130. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +8 -0
  131. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +9 -0
  132. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +8 -0
  133. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +9 -0
  134. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +8 -0
  135. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +8 -0
  136. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +8 -0
  137. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +7 -0
  138. data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +6 -6
  139. data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +11 -7
  140. data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +13 -7
  141. data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -4
  142. data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -8
  143. data/vendor/assets/javascripts/ckeditor/{images → plugins/fakeobjects/images}/spacer.gif +0 -0
  144. data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +24 -10
  145. data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +23 -9
  146. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +8 -6
  147. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +8 -6
  148. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +8 -6
  149. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +8 -6
  150. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +8 -6
  151. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +20 -9
  152. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +8 -6
  153. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +10 -6
  154. data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
  155. data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +10 -7
  156. data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +41 -13
  157. data/vendor/assets/javascripts/ckeditor/{skins/kama → plugins/image}/images/noimage.png +0 -0
  158. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +8 -6
  159. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +36 -12
  160. data/vendor/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
  161. data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -7
  162. data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
  163. data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +30 -11
  164. data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +10 -7
  165. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
  166. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
  167. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/{lang → dialogs/lang}/_translationstatus.txt +0 -2
  168. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +13 -0
  169. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
  170. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
  171. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
  172. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
  173. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
  174. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
  175. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
  176. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +13 -0
  177. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
  178. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
  179. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +13 -0
  180. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
  181. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
  182. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +14 -0
  183. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
  184. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
  185. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
  186. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
  187. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
  188. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
  189. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
  190. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
  191. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
  192. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -7
  193. data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +20 -9
  194. data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +16 -8
  195. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +84 -0
  196. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +10 -7
  197. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +6 -6
  198. data/vendor/assets/javascripts/ckeditor/skins/kama/dialog.css +1 -6
  199. data/vendor/assets/javascripts/ckeditor/skins/kama/dialog_ie.css +5 -0
  200. data/vendor/assets/javascripts/ckeditor/skins/kama/dialog_ie7.css +5 -0
  201. data/vendor/assets/javascripts/ckeditor/skins/kama/dialog_ie8.css +5 -0
  202. data/vendor/assets/javascripts/ckeditor/skins/kama/dialog_iequirks.css +5 -0
  203. data/vendor/assets/javascripts/ckeditor/skins/kama/dialog_opera.css +5 -0
  204. data/vendor/assets/javascripts/ckeditor/skins/kama/editor.css +1 -9
  205. data/vendor/assets/javascripts/ckeditor/skins/kama/editor_ie.css +5 -0
  206. data/vendor/assets/javascripts/ckeditor/skins/kama/editor_ie7.css +5 -0
  207. data/vendor/assets/javascripts/ckeditor/skins/kama/editor_ie8.css +5 -0
  208. data/vendor/assets/javascripts/ckeditor/skins/kama/editor_iequirks.css +5 -0
  209. data/vendor/assets/javascripts/ckeditor/skins/kama/icons.png +0 -0
  210. data/vendor/assets/javascripts/ckeditor/skins/kama/readme.md +40 -0
  211. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog.css +5 -0
  212. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +5 -0
  213. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +5 -0
  214. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +5 -0
  215. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_opera.css +5 -0
  216. data/vendor/assets/javascripts/ckeditor/skins/moono/editor.css +5 -0
  217. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +5 -0
  218. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css +5 -0
  219. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +5 -0
  220. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +5 -0
  221. data/vendor/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
  222. data/vendor/assets/javascripts/ckeditor/skins/moono/images/arrow.png +0 -0
  223. data/vendor/assets/javascripts/ckeditor/skins/moono/images/close.png +0 -0
  224. data/vendor/assets/javascripts/ckeditor/skins/moono/images/mini.png +0 -0
  225. data/vendor/assets/javascripts/ckeditor/skins/moono/readme.md +51 -0
  226. data/vendor/assets/javascripts/ckeditor/styles.js +112 -0
  227. metadata +113 -221
  228. data/app/assets/javascripts/ckeditor/plugins/attachment/dialogs/attachment.js +0 -1
  229. data/app/assets/javascripts/ckeditor/plugins/attachment/images/attachment.png +0 -0
  230. data/app/assets/javascripts/ckeditor/plugins/attachment/lang/en.js +0 -10
  231. data/app/assets/javascripts/ckeditor/plugins/attachment/lang/ru.js +0 -10
  232. data/app/assets/javascripts/ckeditor/plugins/attachment/lang/uk.js +0 -10
  233. data/app/assets/javascripts/ckeditor/plugins/attachment/plugin.js +0 -1
  234. data/app/assets/javascripts/ckeditor/plugins/embed/dialogs/embed.js +0 -1
  235. data/app/assets/javascripts/ckeditor/plugins/embed/images/embed.png +0 -0
  236. data/app/assets/javascripts/ckeditor/plugins/embed/lang/el.js +0 -9
  237. data/app/assets/javascripts/ckeditor/plugins/embed/lang/en.js +0 -9
  238. data/app/assets/javascripts/ckeditor/plugins/embed/lang/ru.js +0 -9
  239. data/app/assets/javascripts/ckeditor/plugins/embed/lang/uk.js +0 -9
  240. data/app/assets/javascripts/ckeditor/plugins/embed/plugin.js +0 -1
  241. data/vendor/assets/javascripts/ckeditor/CHANGES.html +0 -1548
  242. data/vendor/assets/javascripts/ckeditor/INSTALL.html +0 -92
  243. data/vendor/assets/javascripts/ckeditor/adapters/jquery.js +0 -6
  244. data/vendor/assets/javascripts/ckeditor/ckeditor.pack +0 -211
  245. data/vendor/assets/javascripts/ckeditor/ckeditor_basic.js +0 -8
  246. data/vendor/assets/javascripts/ckeditor/ckeditor_basic_source.js +0 -20
  247. data/vendor/assets/javascripts/ckeditor/ckeditor_source.js +0 -35
  248. data/vendor/assets/javascripts/ckeditor/lang/_languages.js +0 -6
  249. data/vendor/assets/javascripts/ckeditor/lang/_translationstatus.txt +0 -64
  250. data/vendor/assets/javascripts/ckeditor/lang/id.js +0 -6
  251. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/cs.js +0 -6
  252. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/cy.js +0 -6
  253. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/da.js +0 -6
  254. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/de.js +0 -6
  255. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/el.js +0 -6
  256. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/en.js +0 -6
  257. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/eo.js +0 -6
  258. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/fa.js +0 -6
  259. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/fi.js +0 -6
  260. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/fr.js +0 -6
  261. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/gu.js +0 -6
  262. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/he.js +0 -6
  263. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/it.js +0 -6
  264. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/mk.js +0 -6
  265. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/nb.js +0 -6
  266. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/nl.js +0 -6
  267. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/no.js +0 -6
  268. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/pt-br.js +0 -6
  269. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/ro.js +0 -6
  270. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/tr.js +0 -6
  271. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/ug.js +0 -6
  272. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/vi.js +0 -6
  273. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/lang/zh-cn.js +0 -6
  274. data/vendor/assets/javascripts/ckeditor/plugins/adobeair/plugin.js +0 -6
  275. data/vendor/assets/javascripts/ckeditor/plugins/ajax/plugin.js +0 -6
  276. data/vendor/assets/javascripts/ckeditor/plugins/autogrow/plugin.js +0 -6
  277. data/vendor/assets/javascripts/ckeditor/plugins/bbcode/plugin.js +0 -9
  278. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/_translationstatus.txt +0 -28
  279. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/bg.js +0 -6
  280. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/cs.js +0 -6
  281. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/cy.js +0 -6
  282. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/da.js +0 -6
  283. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/de.js +0 -6
  284. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/el.js +0 -6
  285. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/en.js +0 -6
  286. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/eo.js +0 -6
  287. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/et.js +0 -6
  288. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/fa.js +0 -6
  289. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/fi.js +0 -6
  290. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/fr.js +0 -6
  291. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/gu.js +0 -6
  292. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/he.js +0 -6
  293. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/hr.js +0 -6
  294. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/it.js +0 -6
  295. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/nb.js +0 -6
  296. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/nl.js +0 -6
  297. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/no.js +0 -6
  298. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/pl.js +0 -6
  299. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/pt-br.js +0 -6
  300. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/tr.js +0 -6
  301. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/ug.js +0 -6
  302. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/uk.js +0 -6
  303. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/vi.js +0 -6
  304. data/vendor/assets/javascripts/ckeditor/plugins/devtools/lang/zh-cn.js +0 -6
  305. data/vendor/assets/javascripts/ckeditor/plugins/devtools/plugin.js +0 -6
  306. data/vendor/assets/javascripts/ckeditor/plugins/docprops/dialogs/docprops.js +0 -10
  307. data/vendor/assets/javascripts/ckeditor/plugins/docprops/plugin.js +0 -6
  308. data/vendor/assets/javascripts/ckeditor/plugins/iframedialog/plugin.js +0 -6
  309. data/vendor/assets/javascripts/ckeditor/plugins/link/images/anchor.gif +0 -0
  310. data/vendor/assets/javascripts/ckeditor/plugins/pastetext/dialogs/pastetext.js +0 -6
  311. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/dialogs/placeholder.js +0 -6
  312. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/_translationstatus.txt +0 -27
  313. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/bg.js +0 -6
  314. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/cs.js +0 -6
  315. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/cy.js +0 -6
  316. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/da.js +0 -6
  317. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/de.js +0 -6
  318. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/el.js +0 -6
  319. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/en.js +0 -6
  320. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/eo.js +0 -6
  321. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/et.js +0 -6
  322. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/fa.js +0 -6
  323. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/fi.js +0 -6
  324. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/fr.js +0 -6
  325. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/he.js +0 -6
  326. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/hr.js +0 -6
  327. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/it.js +0 -6
  328. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/nb.js +0 -6
  329. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/nl.js +0 -6
  330. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/no.js +0 -6
  331. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/pl.js +0 -6
  332. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/pt-br.js +0 -6
  333. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/tr.js +0 -6
  334. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/ug.js +0 -6
  335. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/uk.js +0 -6
  336. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/vi.js +0 -6
  337. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/lang/zh-cn.js +0 -6
  338. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/placeholder.gif +0 -0
  339. data/vendor/assets/javascripts/ckeditor/plugins/placeholder/plugin.js +0 -6
  340. data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -8
  341. data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -6
  342. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/cs.js +0 -6
  343. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/cy.js +0 -6
  344. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/de.js +0 -6
  345. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/el.js +0 -6
  346. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/en.js +0 -6
  347. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/eo.js +0 -6
  348. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/et.js +0 -6
  349. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/fa.js +0 -6
  350. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/fi.js +0 -6
  351. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/fr.js +0 -6
  352. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/he.js +0 -6
  353. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/hr.js +0 -6
  354. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/it.js +0 -6
  355. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/nb.js +0 -6
  356. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/nl.js +0 -6
  357. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/no.js +0 -6
  358. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/pt-br.js +0 -6
  359. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/tr.js +0 -6
  360. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/ug.js +0 -6
  361. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/lang/zh-cn.js +0 -6
  362. data/vendor/assets/javascripts/ckeditor/plugins/styles/styles/default.js +0 -6
  363. data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +0 -6
  364. data/vendor/assets/javascripts/ckeditor/plugins/tableresize/plugin.js +0 -7
  365. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/dialogs/uicolor.js +0 -7
  366. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/_translationstatus.txt +0 -28
  367. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/bg.js +0 -6
  368. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/cs.js +0 -6
  369. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/cy.js +0 -6
  370. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/da.js +0 -6
  371. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/de.js +0 -6
  372. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/el.js +0 -6
  373. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/en.js +0 -6
  374. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/eo.js +0 -6
  375. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/et.js +0 -6
  376. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/fa.js +0 -6
  377. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/fi.js +0 -6
  378. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/fr.js +0 -6
  379. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/he.js +0 -6
  380. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/hr.js +0 -6
  381. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/it.js +0 -6
  382. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/mk.js +0 -6
  383. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/nb.js +0 -6
  384. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/nl.js +0 -6
  385. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/no.js +0 -6
  386. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/pl.js +0 -6
  387. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/pt-br.js +0 -6
  388. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/tr.js +0 -6
  389. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/ug.js +0 -6
  390. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/uk.js +0 -6
  391. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/vi.js +0 -6
  392. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/lang/zh-cn.js +0 -6
  393. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/plugin.js +0 -6
  394. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/uicolor.gif +0 -0
  395. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  396. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  397. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  398. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  399. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css +0 -6
  400. data/vendor/assets/javascripts/ckeditor/plugins/uicolor/yui/yui.js +0 -76
  401. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -49
  402. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
  403. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -6
  404. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -7
  405. data/vendor/assets/javascripts/ckeditor/plugins/xml/plugin.js +0 -6
  406. data/vendor/assets/javascripts/ckeditor/skins/kama/icons_rtl.png +0 -0
  407. data/vendor/assets/javascripts/ckeditor/skins/kama/skin.js +0 -7
  408. data/vendor/assets/javascripts/ckeditor/skins/kama/templates.css +0 -6
  409. data/vendor/assets/javascripts/ckeditor/skins/office2003/dialog.css +0 -10
  410. data/vendor/assets/javascripts/ckeditor/skins/office2003/editor.css +0 -14
  411. data/vendor/assets/javascripts/ckeditor/skins/office2003/icons.png +0 -0
  412. data/vendor/assets/javascripts/ckeditor/skins/office2003/icons_rtl.png +0 -0
  413. data/vendor/assets/javascripts/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
  414. data/vendor/assets/javascripts/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
  415. data/vendor/assets/javascripts/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
  416. data/vendor/assets/javascripts/ckeditor/skins/office2003/images/mini.gif +0 -0
  417. data/vendor/assets/javascripts/ckeditor/skins/office2003/images/noimage.png +0 -0
  418. data/vendor/assets/javascripts/ckeditor/skins/office2003/images/sprites.png +0 -0
  419. data/vendor/assets/javascripts/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
  420. data/vendor/assets/javascripts/ckeditor/skins/office2003/skin.js +0 -6
  421. data/vendor/assets/javascripts/ckeditor/skins/office2003/templates.css +0 -6
  422. data/vendor/assets/javascripts/ckeditor/skins/v2/dialog.css +0 -9
  423. data/vendor/assets/javascripts/ckeditor/skins/v2/editor.css +0 -13
  424. data/vendor/assets/javascripts/ckeditor/skins/v2/icons.png +0 -0
  425. data/vendor/assets/javascripts/ckeditor/skins/v2/icons_rtl.png +0 -0
  426. data/vendor/assets/javascripts/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
  427. data/vendor/assets/javascripts/ckeditor/skins/v2/images/dialog_sides.png +0 -0
  428. data/vendor/assets/javascripts/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
  429. data/vendor/assets/javascripts/ckeditor/skins/v2/images/mini.gif +0 -0
  430. data/vendor/assets/javascripts/ckeditor/skins/v2/images/noimage.png +0 -0
  431. data/vendor/assets/javascripts/ckeditor/skins/v2/images/sprites.png +0 -0
  432. data/vendor/assets/javascripts/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
  433. data/vendor/assets/javascripts/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
  434. data/vendor/assets/javascripts/ckeditor/skins/v2/skin.js +0 -6
  435. data/vendor/assets/javascripts/ckeditor/skins/v2/templates.css +0 -6
  436. data/vendor/assets/javascripts/ckeditor/themes/default/theme.js +0 -8
@@ -7,19 +7,15 @@ module Ckeditor
7
7
  include ActionView::Helpers::JavaScriptHelper
8
8
 
9
9
  def cktext_area(object_name, method, options = {})
10
- options = { :language => I18n.locale.to_s }.merge(options)
11
- input_html = (options.delete(:input_html) || {}).stringify_keys
12
- js_content_for_section = options.delete(:js_content_for)
10
+ options = (options || {}).stringify_keys
11
+ ck_options = (options.delete('ckeditor') || {}).stringify_keys
13
12
 
14
- instance_tag = ActionView::Base::InstanceTag.new(object_name, method, self, options.delete(:object))
15
- instance_tag.send(:add_default_name_and_id, input_html)
13
+ instance_tag = ActionView::Base::InstanceTag.new(object_name, method, self, options.delete('object'))
14
+ instance_tag.send(:add_default_name_and_id, options) if options['id'].blank?
16
15
 
17
16
  output_buffer = ActiveSupport::SafeBuffer.new
18
- output_buffer << instance_tag.to_text_area_tag(input_html)
19
-
20
- js = Utils.js_replace(input_html['id'], options)
21
-
22
- output_buffer << (js_content_for_section ? content_for(js_content_for_section, js) : javascript_tag(js))
17
+ output_buffer << instance_tag.to_text_area_tag(options)
18
+ output_buffer << javascript_tag(Utils.js_replace(options['id'], ck_options))
23
19
  output_buffer
24
20
  end
25
21
  end
@@ -0,0 +1,46 @@
1
+ require 'cancan'
2
+
3
+ module Ckeditor
4
+ module Hooks
5
+ # This adapter is for the CanCan[https://github.com/ryanb/cancan] authorization library.
6
+ # You can create another adapter for different authorization behavior, just be certain it
7
+ # responds to each of the public methods here.
8
+ class CanCanAuthorization
9
+ # See the +authorize_with+ config method for where the initialization happens.
10
+ def initialize(controller, ability = ::Ability)
11
+ @controller = controller
12
+ @controller.instance_variable_set '@ability', ability
13
+ @controller.extend ControllerExtension
14
+ @controller.current_ability.authorize! :access, :ckeditor
15
+ end
16
+
17
+ # This method is called in every controller action and should raise an exception
18
+ # when the authorization fails. The first argument is the name of the controller
19
+ # action as a symbol (:create, :destroy, etc.). The second argument is the actual model
20
+ # instance if it is available.
21
+ def authorize(action, model_object = nil)
22
+ @controller.current_ability.authorize!(action.to_sym, model_object) if action
23
+ end
24
+
25
+ # This method is called primarily from the view to determine whether the given user
26
+ # has access to perform the action on a given model. It should return true when authorized.
27
+ # This takes the same arguments as +authorize+. The difference is that this will
28
+ # return a boolean whereas +authorize+ will raise an exception when not authorized.
29
+ def authorized?(action, model_object = nil)
30
+ @controller.current_ability.can?(action.to_sym, model_object) if action
31
+ end
32
+
33
+ private
34
+
35
+ module ControllerExtension
36
+ def current_ability
37
+ # use ckeditor_current_user instead of default current_user so it works with
38
+ # whatever current user method is defined with Ckeditor
39
+ @current_ability ||= @ability.new(ckeditor_current_user)
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+
46
+ Ckeditor::AUTHORIZATION_ADAPTERS[:cancan] = Ckeditor::Hooks::CanCanAuthorization
@@ -1,3 +1,5 @@
1
+ require 'simple_form'
2
+
1
3
  module Ckeditor::Hooks::SimpleForm
2
4
  class CkeditorInput < ::SimpleForm::Inputs::Base
3
5
  def input
@@ -5,6 +7,7 @@ module Ckeditor::Hooks::SimpleForm
5
7
  end
6
8
  end
7
9
  end
10
+
8
11
  ::SimpleForm::FormBuilder.map_type :ckeditor, :to => Ckeditor::Hooks::SimpleForm::CkeditorInput
9
12
 
10
13
  # TODO: remove this after a while, SimpleForm::FormBuilder#ckeditor is deprecated.
@@ -6,6 +6,10 @@ module Ckeditor
6
6
  def filename
7
7
  data_file_name
8
8
  end
9
+
10
+ def size
11
+ data_file_size
12
+ end
9
13
 
10
14
  def has_dimensions?
11
15
  respond_to?(:width) && respond_to?(:height)
@@ -27,13 +27,18 @@ module Ckeditor
27
27
  [basename.parameterize('_'), extension].join.downcase
28
28
  end
29
29
 
30
- def js_replace(dom_id, options = {})
31
- js_options = ActiveSupport::JSON.encode(options)
32
-
33
- js = ["if (CKEDITOR.instances['#{dom_id}']) {CKEDITOR.remove(CKEDITOR.instances['#{dom_id}']);}"]
34
- js << "CKEDITOR.replace('#{dom_id}', #{js_options});"
30
+ def js_replace(dom_id, options = nil)
31
+ js = ["if (typeof CKEDITOR != 'undefined') {"]
32
+
33
+ if options && !options.keys.empty?
34
+ js_options = ActiveSupport::JSON.encode(options)
35
+ js << "CKEDITOR.replace('#{dom_id}', #{js_options});"
36
+ else
37
+ js << "CKEDITOR.replace('#{dom_id}');"
38
+ end
35
39
 
36
- "(function() { #{js.join} }).call(this);".html_safe
40
+ js << "}"
41
+ js.join(" ").html_safe
37
42
  end
38
43
 
39
44
  def js_fileuploader(uploader_type, options = {})
@@ -69,7 +74,7 @@ module Ckeditor
69
74
  end
70
75
 
71
76
  def select_assets(path, relative_path)
72
- folder = File.join(path, '**')
77
+ folder = File.join(relative_path, path, '**')
73
78
  relative_folder = Ckeditor.root_path.join(relative_path)
74
79
 
75
80
  Dir[Ckeditor.root_path.join(folder, '*.{js,css}')].inject([]) do |list, file|
@@ -1,6 +1,6 @@
1
1
  module Ckeditor
2
2
  module Version
3
- GEM = "3.7.3".freeze
4
- EDITOR = "3.6.4".freeze
3
+ GEM = "4.0.0.rc1".freeze
4
+ EDITOR = "4.0".freeze
5
5
  end
6
6
  end
@@ -72,11 +72,11 @@ module Ckeditor
72
72
  end
73
73
 
74
74
  def orm
75
- options[:orm] || "active_record"
75
+ (options[:orm] || "active_record").to_s
76
76
  end
77
77
 
78
78
  def backend
79
- options[:backend] || "paperclip"
79
+ (options[:backend] || "paperclip").to_s
80
80
  end
81
81
  end
82
82
  end
@@ -1,7 +1,7 @@
1
1
  class Ckeditor::Asset < ActiveRecord::Base
2
2
  include Ckeditor::Orm::ActiveRecord::AssetBase
3
-
4
- delegate :url, :current_path, :size, :content_type, :filename, :to => :data
3
+
4
+ delegate :url, :current_path, :content_type, :to => :data
5
5
 
6
6
  validates_presence_of :data
7
7
  end
@@ -5,8 +5,8 @@ class Ckeditor::AttachmentFile < Ckeditor::Asset
5
5
 
6
6
  validates_attachment_size :data, :less_than => 100.megabytes
7
7
  validates_attachment_presence :data
8
-
9
- def url_thumb
10
- @url_thumb ||= Ckeditor::Utils.filethumb(filename)
11
- end
8
+
9
+ def url_thumb
10
+ @url_thumb ||= Ckeditor::Utils.filethumb(filename)
11
+ end
12
12
  end
@@ -2,12 +2,12 @@ class Ckeditor::Picture < Ckeditor::Asset
2
2
  has_attached_file :data,
3
3
  :url => "/ckeditor_assets/pictures/:id/:style_:basename.:extension",
4
4
  :path => ":rails_root/public/ckeditor_assets/pictures/:id/:style_:basename.:extension",
5
- :styles => { :content => '800>', :thumb => '118x100#' }
6
-
7
- validates_attachment_size :data, :less_than => 2.megabytes
8
- validates_attachment_presence :data
9
-
10
- def url_content
11
- url(:content)
12
- end
5
+ :styles => { :content => '800>', :thumb => '118x100#' }
6
+
7
+ validates_attachment_size :data, :less_than => 2.megabytes
8
+ validates_attachment_presence :data
9
+
10
+ def url_content
11
+ url(:content)
12
+ end
13
13
  end
@@ -14,5 +14,8 @@ if Object.const_defined?("Ckeditor")
14
14
  # Allowed attachment file types for upload.
15
15
  # Set to nil or [] (empty array) for all file types
16
16
  # config.attachment_file_types = ["doc", "docx", "xls", "odt", "ods", "pdf", "rar", "zip", "tar", "swf"]
17
+
18
+ # Setup authorization to be run as a before filter
19
+ # config.authorize_with :cancan
17
20
  end
18
21
  end
@@ -1,6 +1,6 @@
1
1
  class Ckeditor::Asset
2
2
  include Ckeditor::Orm::Mongoid::AssetBase
3
-
3
+
4
4
  delegate :url, :current_path, :size, :content_type, :filename, :to => :data
5
5
 
6
6
  validates_presence_of :data
@@ -15,13 +15,13 @@
15
15
  <%= f.text_field :title %>
16
16
 
17
17
  <%= f.label :content %>
18
- <%= f.cktext_area :content, :width => 800, :height => 400 %>
18
+ <%= f.cktext_area :content, :ckeditor => { :width => 800, :height => 400 } %>
19
19
 
20
20
  <%= f.label :info %>
21
21
  <% if @post.new_record? %>
22
- <%= cktext_area :post, :info, :input_html => { :value => "Defaults info content" } %>
22
+ <%= cktext_area :post, :info, :value => "Defaults info content", :id => "new_info_content" %>
23
23
  <% else %>
24
- <%= cktext_area :post, :info, :input_html => { :cols => 50, :rows => 70 } %>
24
+ <%= cktext_area :post, :info, :cols => 50, :rows => 70 %>
25
25
  <% end %>
26
26
 
27
27
  <div class="actions">
@@ -8826,3 +8826,2846 @@ Completed 200 OK in 13ms (Views: 10.6ms | ActiveRecord: 0.3ms)
8826
8826
   (0.1ms) rollback transaction
8827
8827
   (0.1ms) begin transaction
8828
8828
   (0.1ms) rollback transaction
8829
+  (0.1ms) select sqlite_version(*)
8830
+  (0.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
8831
+  (0.0ms) PRAGMA index_list("schema_migrations")
8832
+  (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8833
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
8834
+ Migrating to CreatePosts (20110623120047)
8835
+  (0.1ms) begin transaction
8836
+  (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) 
8837
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110623120047')
8838
+  (0.1ms) commit transaction
8839
+  (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)
8840
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
8841
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
8842
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
8843
+  (0.1ms) PRAGMA index_info('idx_ckeditor_assetable_type')
8844
+  (0.2ms) CREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")
8845
+  (0.1ms) begin transaction
8846
+  (0.1ms) SAVEPOINT active_record_1
8847
+ SQL (79.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", Sat, 05 Jan 2013 22:12:31 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", Sat, 05 Jan 2013 22:12:31 UTC +00:00], ["width", nil]]
8848
+ [paperclip] Saving attachments.
8849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8850
+  (0.1ms) SAVEPOINT active_record_1
8851
+ [paperclip] Scheduling attachments for deletion.
8852
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
8853
+ [paperclip] Deleting attachments.
8854
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
8855
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8856
+  (0.1ms) rollback transaction
8857
+  (0.1ms) begin transaction
8858
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
8859
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
8860
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xb1f0828 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-25328-4gpwxo>>, "CKEditor"=>"ckeditor_field"}
8861
+ Completed 500 Internal Server Error in 65ms
8862
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
8863
+  (0.1ms) rollback transaction
8864
+  (0.1ms) begin transaction
8865
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
8866
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
8867
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xa297674 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-25328-1fsy0tz>>}
8868
+ Completed 500 Internal Server Error in 2ms
8869
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
8870
+  (0.1ms) rollback transaction
8871
+  (0.1ms) begin transaction
8872
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
8873
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
8874
+ Parameters: {"qqfile"=>"rails.tar.gz"}
8875
+ Completed 500 Internal Server Error in 2ms
8876
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
8877
+  (0.1ms) rollback transaction
8878
+  (0.1ms) begin transaction
8879
+  (0.1ms) SAVEPOINT active_record_1
8880
+ 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", Sat, 05 Jan 2013 22:12:32 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", Sat, 05 Jan 2013 22:12:32 UTC +00:00], ["width", nil]]
8881
+ [paperclip] Saving attachments.
8882
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8883
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
8884
+ Processing by Ckeditor::AttachmentFilesController#destroy as HTML
8885
+ Parameters: {"id"=>"1"}
8886
+ 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"]]
8887
+  (0.1ms) SAVEPOINT active_record_1
8888
+ [paperclip] Scheduling attachments for deletion.
8889
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
8890
+ [paperclip] Deleting attachments.
8891
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
8892
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8893
+ Redirected to http://test.host/ckeditor/attachment_files
8894
+ Completed 302 Found in 153ms (ActiveRecord: 0.0ms)
8895
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
8896
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
8897
+  (0.1ms) rollback transaction
8898
+  (0.1ms) begin transaction
8899
+ Processing by Ckeditor::AttachmentFilesController#index as HTML
8900
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') ORDER BY id desc
8901
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
8902
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (1.5ms)
8903
+ Completed 200 OK in 44ms (Views: 41.3ms | ActiveRecord: 0.3ms)
8904
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
8905
+  (0.1ms) rollback transaction
8906
+  (0.1ms) begin transaction
8907
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
8908
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
8909
+ Parameters: {"qqfile"=>nil}
8910
+ Completed 500 Internal Server Error in 1ms
8911
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
8912
+  (0.1ms) rollback transaction
8913
+  (0.1ms) begin transaction
8914
+  (0.1ms) rollback transaction
8915
+  (0.1ms) begin transaction
8916
+  (0.1ms) rollback transaction
8917
+  (0.1ms) begin transaction
8918
+  (0.1ms) rollback transaction
8919
+  (0.1ms) begin transaction
8920
+  (0.1ms) rollback transaction
8921
+  (0.1ms) begin transaction
8922
+  (0.1ms) rollback transaction
8923
+  (0.1ms) begin transaction
8924
+  (0.1ms) rollback transaction
8925
+  (0.1ms) begin transaction
8926
+  (0.1ms) rollback transaction
8927
+  (0.1ms) begin transaction
8928
+  (0.1ms) rollback transaction
8929
+  (0.1ms) begin transaction
8930
+  (0.1ms) rollback transaction
8931
+  (0.1ms) begin transaction
8932
+  (0.1ms) rollback transaction
8933
+  (0.1ms) begin transaction
8934
+ Command :: identify -format %wx%h '/tmp/rails20130106-25328-1eyn0a0.png[0]'
8935
+ Command :: convert '/tmp/rails20130106-25328-1eyn0a0.png[0]' -resize "800>" '/tmp/rails20130106-25328-1eyn0a020130106-25328-jwrs2e'
8936
+ Command :: identify -format %wx%h '/tmp/rails20130106-25328-1eyn0a0.png[0]'
8937
+ Command :: convert '/tmp/rails20130106-25328-1eyn0a0.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25328-1eyn0a020130106-25328-11u31uy'
8938
+  (0.1ms) SAVEPOINT active_record_1
8939
+ Command :: identify -format %wx%h '/tmp/rails20130106-25328-1eyn0a0.png[0]'
8940
+ 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", Sat, 05 Jan 2013 22:12:33 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:12:33 UTC +00:00], ["width", 50]]
8941
+ [paperclip] Saving attachments.
8942
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8943
+  (0.1ms) SAVEPOINT active_record_1
8944
+ [paperclip] Scheduling attachments for deletion.
8945
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
8946
+ [paperclip] Deleting attachments.
8947
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
8948
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
8949
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
8950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8951
+  (0.1ms) rollback transaction
8952
+  (0.1ms) begin transaction
8953
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
8954
+ Processing by Ckeditor::PicturesController#create as HTML
8955
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xbc80e14 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-25328-sq3sqg>>, "CKEditor"=>"ckeditor_field"}
8956
+ Command :: identify -format %wx%h '/tmp/rails20130106-25328-1bt4v8x.png[0]'
8957
+ Command :: convert '/tmp/rails20130106-25328-1bt4v8x.png[0]' -resize "800>" '/tmp/rails20130106-25328-1bt4v8x20130106-25328-15tn7la'
8958
+ Command :: identify -format %wx%h '/tmp/rails20130106-25328-1bt4v8x.png[0]'
8959
+ Command :: convert '/tmp/rails20130106-25328-1bt4v8x.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25328-1bt4v8x20130106-25328-1sy8u4i'
8960
+ Completed 500 Internal Server Error in 75ms
8961
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
8962
+  (0.1ms) rollback transaction
8963
+  (0.1ms) begin transaction
8964
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
8965
+ Processing by Ckeditor::PicturesController#create as HTML
8966
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xc134258 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-25328-a3n6in>>}
8967
+ Command :: identify -format %wx%h '/tmp/rails20130106-25328-1xn72wr.png[0]'
8968
+ Command :: convert '/tmp/rails20130106-25328-1xn72wr.png[0]' -resize "800>" '/tmp/rails20130106-25328-1xn72wr20130106-25328-1bv19ku'
8969
+ Command :: identify -format %wx%h '/tmp/rails20130106-25328-1xn72wr.png[0]'
8970
+ Command :: convert '/tmp/rails20130106-25328-1xn72wr.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25328-1xn72wr20130106-25328-1goc5at'
8971
+ Completed 500 Internal Server Error in 134ms
8972
+ Ckeditor::Picture Load (0.5ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
8973
+  (0.1ms) rollback transaction
8974
+  (0.1ms) begin transaction
8975
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
8976
+ Processing by Ckeditor::PicturesController#create as HTML
8977
+ Parameters: {"qqfile"=>"rails.png"}
8978
+ Command :: identify -format %wx%h '/tmp/rails20130106-25328-10zwifz.png[0]'
8979
+ Command :: convert '/tmp/rails20130106-25328-10zwifz.png[0]' -resize "800>" '/tmp/rails20130106-25328-10zwifz20130106-25328-z1gmlq'
8980
+ Command :: identify -format %wx%h '/tmp/rails20130106-25328-10zwifz.png[0]'
8981
+ Command :: convert '/tmp/rails20130106-25328-10zwifz.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25328-10zwifz20130106-25328-113kyke'
8982
+ Completed 500 Internal Server Error in 95ms
8983
+ Ckeditor::Picture Load (0.4ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
8984
+  (0.1ms) rollback transaction
8985
+  (0.1ms) begin transaction
8986
+ Command :: identify -format %wx%h '/tmp/rails20130106-25328-17jr67p.png[0]'
8987
+ Command :: convert '/tmp/rails20130106-25328-17jr67p.png[0]' -resize "800>" '/tmp/rails20130106-25328-17jr67p20130106-25328-1rmit85'
8988
+ Command :: identify -format %wx%h '/tmp/rails20130106-25328-17jr67p.png[0]'
8989
+ Command :: convert '/tmp/rails20130106-25328-17jr67p.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25328-17jr67p20130106-25328-1e85sth'
8990
+  (0.2ms) SAVEPOINT active_record_1
8991
+ Command :: identify -format %wx%h '/tmp/rails20130106-25328-17jr67p.png[0]'
8992
+ 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", Sat, 05 Jan 2013 22:12:33 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:12:33 UTC +00:00], ["width", 50]]
8993
+ [paperclip] Saving attachments.
8994
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8995
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
8996
+ Processing by Ckeditor::PicturesController#destroy as HTML
8997
+ Parameters: {"id"=>"1"}
8998
+ 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"]]
8999
+  (0.1ms) SAVEPOINT active_record_1
9000
+ [paperclip] Scheduling attachments for deletion.
9001
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9002
+ [paperclip] Deleting attachments.
9003
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9004
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9005
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9006
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9007
+ Redirected to http://test.host/ckeditor/pictures
9008
+ Completed 302 Found in 13ms (ActiveRecord: 0.0ms)
9009
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9010
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9011
+  (0.1ms) rollback transaction
9012
+  (0.1ms) begin transaction
9013
+ Processing by Ckeditor::PicturesController#index as HTML
9014
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') ORDER BY id desc
9015
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
9016
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (0.6ms)
9017
+ Completed 200 OK in 29ms (Views: 27.0ms | ActiveRecord: 0.3ms)
9018
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9019
+  (0.1ms) rollback transaction
9020
+  (0.1ms) begin transaction
9021
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9022
+ Processing by Ckeditor::PicturesController#create as HTML
9023
+ Parameters: {"qqfile"=>nil}
9024
+ Completed 500 Internal Server Error in 1ms
9025
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9026
+  (0.1ms) rollback transaction
9027
+  (0.1ms) begin transaction
9028
+  (0.1ms) SAVEPOINT active_record_1
9029
+ SQL (0.5ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:12:33 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:12:33 UTC +00:00]]
9030
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9031
+ Processing by PostsController#new as HTML
9032
+ Rendered posts/_form.html.erb (7.8ms)
9033
+ Completed 200 OK in 81ms (Views: 80.4ms | ActiveRecord: 0.0ms)
9034
+  (0.1ms) SAVEPOINT active_record_1
9035
+ SQL (0.2ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
9036
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9037
+  (0.1ms) rollback transaction
9038
+  (0.1ms) begin transaction
9039
+  (0.1ms) SAVEPOINT active_record_1
9040
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:12:34 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:12:34 UTC +00:00]]
9041
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9042
+ Processing by PostsController#index as HTML
9043
+ Post Load (0.3ms) SELECT "posts".* FROM "posts"
9044
+ Completed 200 OK in 76ms (Views: 74.3ms | ActiveRecord: 0.3ms)
9045
+  (0.1ms) SAVEPOINT active_record_1
9046
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
9047
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9048
+  (0.1ms) rollback transaction
9049
+  (0.1ms) begin transaction
9050
+  (0.1ms) SAVEPOINT active_record_1
9051
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:12:34 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:12:34 UTC +00:00]]
9052
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9053
+ Processing by PostsController#index as HTML
9054
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" 
9055
+ Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.3ms)
9056
+  (0.1ms) SAVEPOINT active_record_1
9057
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
9058
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9059
+  (0.1ms) rollback transaction
9060
+  (0.1ms) begin transaction
9061
+  (0.1ms) SAVEPOINT active_record_1
9062
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:12:34 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:12:34 UTC +00:00]]
9063
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9064
+ Processing by PostsController#edit as HTML
9065
+ Parameters: {"id"=>"1"}
9066
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
9067
+ Rendered posts/_form.html.erb (5.6ms)
9068
+ Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.3ms)
9069
+  (0.1ms) SAVEPOINT active_record_1
9070
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
9071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9072
+  (0.1ms) rollback transaction
9073
+  (0.1ms) begin transaction
9074
+  (0.1ms) rollback transaction
9075
+  (0.1ms) begin transaction
9076
+  (0.1ms) rollback transaction
9077
+  (0.1ms) select sqlite_version(*)
9078
+  (0.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
9079
+  (0.0ms) PRAGMA index_list("schema_migrations")
9080
+  (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9081
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9082
+ Migrating to CreatePosts (20110623120047)
9083
+  (0.1ms) begin transaction
9084
+  (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) 
9085
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110623120047')
9086
+  (0.1ms) commit transaction
9087
+  (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)
9088
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
9089
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
9090
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
9091
+  (0.1ms) PRAGMA index_info('idx_ckeditor_assetable_type')
9092
+  (0.2ms) CREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")
9093
+  (0.1ms) begin transaction
9094
+  (0.1ms) SAVEPOINT active_record_1
9095
+ SQL (56.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", Sat, 05 Jan 2013 22:13:19 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", Sat, 05 Jan 2013 22:13:19 UTC +00:00], ["width", nil]]
9096
+ [paperclip] Saving attachments.
9097
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9098
+  (0.1ms) SAVEPOINT active_record_1
9099
+ [paperclip] Scheduling attachments for deletion.
9100
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
9101
+ [paperclip] Deleting attachments.
9102
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
9103
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9104
+  (0.1ms) rollback transaction
9105
+  (0.1ms) begin transaction
9106
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9107
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
9108
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xa31f240 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-25413-1uz5lcz>>, "CKEditor"=>"ckeditor_field"}
9109
+  (0.1ms) SAVEPOINT active_record_1
9110
+ 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", Sat, 05 Jan 2013 22:13:19 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", Sat, 05 Jan 2013 22:13:19 UTC +00:00], ["width", nil]]
9111
+ [paperclip] Saving attachments.
9112
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9113
+ Rendered text template (0.0ms)
9114
+ Completed 200 OK in 252ms (Views: 72.3ms | ActiveRecord: 0.7ms)
9115
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9116
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9117
+  (0.1ms) SAVEPOINT active_record_1
9118
+ [paperclip] Scheduling attachments for deletion.
9119
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
9120
+ [paperclip] Deleting attachments.
9121
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
9122
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9123
+  (0.1ms) rollback transaction
9124
+  (0.1ms) begin transaction
9125
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9126
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
9127
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xa42f1f8 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-25413-i2acl6>>}
9128
+  (0.1ms) SAVEPOINT active_record_1
9129
+ 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", Sat, 05 Jan 2013 22:13:19 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", Sat, 05 Jan 2013 22:13:19 UTC +00:00], ["width", nil]]
9130
+ [paperclip] Saving attachments.
9131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9132
+ Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 0.6ms)
9133
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9134
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9135
+  (0.1ms) SAVEPOINT active_record_1
9136
+ [paperclip] Scheduling attachments for deletion.
9137
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
9138
+ [paperclip] Deleting attachments.
9139
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
9140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9141
+  (0.1ms) rollback transaction
9142
+  (0.1ms) begin transaction
9143
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9144
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
9145
+ Parameters: {"qqfile"=>"rails.tar.gz"}
9146
+  (0.1ms) SAVEPOINT active_record_1
9147
+ 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", Sat, 05 Jan 2013 22:13:19 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", Sat, 05 Jan 2013 22:13:19 UTC +00:00], ["width", nil]]
9148
+ [paperclip] Saving attachments.
9149
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9150
+ Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 0.6ms)
9151
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9152
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9153
+  (0.1ms) SAVEPOINT active_record_1
9154
+ [paperclip] Scheduling attachments for deletion.
9155
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
9156
+ [paperclip] Deleting attachments.
9157
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
9158
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9159
+  (0.1ms) rollback transaction
9160
+  (0.1ms) begin transaction
9161
+  (0.1ms) SAVEPOINT active_record_1
9162
+ 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", Sat, 05 Jan 2013 22:13:19 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", Sat, 05 Jan 2013 22:13:19 UTC +00:00], ["width", nil]]
9163
+ [paperclip] Saving attachments.
9164
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9165
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9166
+ Processing by Ckeditor::AttachmentFilesController#destroy as HTML
9167
+ Parameters: {"id"=>"1"}
9168
+ 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"]]
9169
+  (0.1ms) SAVEPOINT active_record_1
9170
+ [paperclip] Scheduling attachments for deletion.
9171
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
9172
+ [paperclip] Deleting attachments.
9173
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
9174
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9175
+ Redirected to http://test.host/ckeditor/attachment_files
9176
+ Completed 302 Found in 71ms (ActiveRecord: 0.0ms)
9177
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9178
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9179
+  (0.1ms) rollback transaction
9180
+  (0.1ms) begin transaction
9181
+ Processing by Ckeditor::AttachmentFilesController#index as HTML
9182
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') ORDER BY id desc
9183
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
9184
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (1.5ms)
9185
+ Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.3ms)
9186
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9187
+  (0.1ms) rollback transaction
9188
+  (0.1ms) begin transaction
9189
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9190
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
9191
+ Parameters: {"qqfile"=>nil}
9192
+  (0.1ms) SAVEPOINT active_record_1
9193
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9194
+ Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.2ms)
9195
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9196
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9197
+  (0.1ms) rollback transaction
9198
+  (0.1ms) begin transaction
9199
+  (0.1ms) rollback transaction
9200
+  (0.1ms) begin transaction
9201
+  (0.0ms) rollback transaction
9202
+  (0.1ms) begin transaction
9203
+  (0.1ms) rollback transaction
9204
+  (0.1ms) begin transaction
9205
+  (0.1ms) rollback transaction
9206
+  (0.1ms) begin transaction
9207
+  (0.1ms) rollback transaction
9208
+  (0.1ms) begin transaction
9209
+  (0.1ms) rollback transaction
9210
+  (0.1ms) begin transaction
9211
+  (0.1ms) rollback transaction
9212
+  (0.1ms) begin transaction
9213
+  (0.1ms) rollback transaction
9214
+  (0.1ms) begin transaction
9215
+  (0.1ms) rollback transaction
9216
+  (0.1ms) begin transaction
9217
+  (0.1ms) rollback transaction
9218
+  (0.1ms) begin transaction
9219
+ Command :: identify -format %wx%h '/tmp/rails20130106-25413-i5kld.png[0]'
9220
+ Command :: convert '/tmp/rails20130106-25413-i5kld.png[0]' -resize "800>" '/tmp/rails20130106-25413-i5kld20130106-25413-mensfs'
9221
+ Command :: identify -format %wx%h '/tmp/rails20130106-25413-i5kld.png[0]'
9222
+ Command :: convert '/tmp/rails20130106-25413-i5kld.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25413-i5kld20130106-25413-1irigvi'
9223
+  (0.1ms) SAVEPOINT active_record_1
9224
+ Command :: identify -format %wx%h '/tmp/rails20130106-25413-i5kld.png[0]'
9225
+ 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", Sat, 05 Jan 2013 22:13:20 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:13:20 UTC +00:00], ["width", 50]]
9226
+ [paperclip] Saving attachments.
9227
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9228
+  (0.1ms) SAVEPOINT active_record_1
9229
+ [paperclip] Scheduling attachments for deletion.
9230
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9231
+ [paperclip] Deleting attachments.
9232
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9233
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9234
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9236
+  (0.1ms) rollback transaction
9237
+  (0.1ms) begin transaction
9238
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9239
+ Processing by Ckeditor::PicturesController#create as HTML
9240
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xb4abdd8 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-25413-vj2zu7>>, "CKEditor"=>"ckeditor_field"}
9241
+ Command :: identify -format %wx%h '/tmp/rails20130106-25413-4gedp9.png[0]'
9242
+ Command :: convert '/tmp/rails20130106-25413-4gedp9.png[0]' -resize "800>" '/tmp/rails20130106-25413-4gedp920130106-25413-45sgrj'
9243
+ Command :: identify -format %wx%h '/tmp/rails20130106-25413-4gedp9.png[0]'
9244
+ Command :: convert '/tmp/rails20130106-25413-4gedp9.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25413-4gedp920130106-25413-1y5uqc9'
9245
+  (0.2ms) SAVEPOINT active_record_1
9246
+ Command :: identify -format %wx%h '/tmp/rails20130106-25413-4gedp9.png[0]'
9247
+ 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", Sat, 05 Jan 2013 22:13:20 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:13:20 UTC +00:00], ["width", 50]]
9248
+ [paperclip] Saving attachments.
9249
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9250
+ Completed 200 OK in 162ms (Views: 1.3ms | ActiveRecord: 0.9ms)
9251
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9252
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9253
+  (0.1ms) SAVEPOINT active_record_1
9254
+ [paperclip] Scheduling attachments for deletion.
9255
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9256
+ [paperclip] Deleting attachments.
9257
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9258
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9259
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9260
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9261
+  (0.1ms) rollback transaction
9262
+  (0.1ms) begin transaction
9263
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9264
+ Processing by Ckeditor::PicturesController#create as HTML
9265
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0x9d81ba8 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-25413-16wj64h>>}
9266
+ Command :: identify -format %wx%h '/tmp/rails20130106-25413-1i6o7up.png[0]'
9267
+ Command :: convert '/tmp/rails20130106-25413-1i6o7up.png[0]' -resize "800>" '/tmp/rails20130106-25413-1i6o7up20130106-25413-1lzoz9s'
9268
+ Command :: identify -format %wx%h '/tmp/rails20130106-25413-1i6o7up.png[0]'
9269
+ Command :: convert '/tmp/rails20130106-25413-1i6o7up.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25413-1i6o7up20130106-25413-1iqui7q'
9270
+  (0.2ms) SAVEPOINT active_record_1
9271
+ Command :: identify -format %wx%h '/tmp/rails20130106-25413-1i6o7up.png[0]'
9272
+ 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", Sat, 05 Jan 2013 22:13:20 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:13:20 UTC +00:00], ["width", 50]]
9273
+ [paperclip] Saving attachments.
9274
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9275
+ Completed 200 OK in 100ms (Views: 0.8ms | ActiveRecord: 0.8ms)
9276
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9277
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9278
+  (0.1ms) SAVEPOINT active_record_1
9279
+ [paperclip] Scheduling attachments for deletion.
9280
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9281
+ [paperclip] Deleting attachments.
9282
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9283
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9284
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9285
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9286
+  (0.1ms) rollback transaction
9287
+  (0.1ms) begin transaction
9288
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9289
+ Processing by Ckeditor::PicturesController#create as HTML
9290
+ Parameters: {"qqfile"=>"rails.png"}
9291
+ Command :: identify -format %wx%h '/tmp/rails20130106-25413-pi9btd.png[0]'
9292
+ Command :: convert '/tmp/rails20130106-25413-pi9btd.png[0]' -resize "800>" '/tmp/rails20130106-25413-pi9btd20130106-25413-13m2xbe'
9293
+ Command :: identify -format %wx%h '/tmp/rails20130106-25413-pi9btd.png[0]'
9294
+ Command :: convert '/tmp/rails20130106-25413-pi9btd.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25413-pi9btd20130106-25413-yji16a'
9295
+  (0.1ms) SAVEPOINT active_record_1
9296
+ Command :: identify -format %wx%h '/tmp/rails20130106-25413-pi9btd.png[0]'
9297
+ 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", Sat, 05 Jan 2013 22:13:20 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:13:20 UTC +00:00], ["width", 50]]
9298
+ [paperclip] Saving attachments.
9299
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9300
+ Completed 200 OK in 101ms (Views: 0.7ms | ActiveRecord: 0.8ms)
9301
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9302
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9303
+  (0.1ms) SAVEPOINT active_record_1
9304
+ [paperclip] Scheduling attachments for deletion.
9305
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9306
+ [paperclip] Deleting attachments.
9307
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9308
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9309
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9311
+  (0.1ms) rollback transaction
9312
+  (0.1ms) begin transaction
9313
+ Command :: identify -format %wx%h '/tmp/rails20130106-25413-7ip0cm.png[0]'
9314
+ Command :: convert '/tmp/rails20130106-25413-7ip0cm.png[0]' -resize "800>" '/tmp/rails20130106-25413-7ip0cm20130106-25413-1wnvplj'
9315
+ Command :: identify -format %wx%h '/tmp/rails20130106-25413-7ip0cm.png[0]'
9316
+ Command :: convert '/tmp/rails20130106-25413-7ip0cm.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25413-7ip0cm20130106-25413-15mfl1n'
9317
+  (0.2ms) SAVEPOINT active_record_1
9318
+ Command :: identify -format %wx%h '/tmp/rails20130106-25413-7ip0cm.png[0]'
9319
+ 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", Sat, 05 Jan 2013 22:13:20 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:13:20 UTC +00:00], ["width", 50]]
9320
+ [paperclip] Saving attachments.
9321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9322
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9323
+ Processing by Ckeditor::PicturesController#destroy as HTML
9324
+ Parameters: {"id"=>"1"}
9325
+ 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"]]
9326
+  (0.1ms) SAVEPOINT active_record_1
9327
+ [paperclip] Scheduling attachments for deletion.
9328
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9329
+ [paperclip] Deleting attachments.
9330
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9331
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9332
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9333
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9334
+ Redirected to http://test.host/ckeditor/pictures
9335
+ Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
9336
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9337
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9338
+  (0.1ms) rollback transaction
9339
+  (0.1ms) begin transaction
9340
+ Processing by Ckeditor::PicturesController#index as HTML
9341
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') ORDER BY id desc
9342
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
9343
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (0.6ms)
9344
+ Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.3ms)
9345
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9346
+  (0.1ms) rollback transaction
9347
+  (0.1ms) begin transaction
9348
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9349
+ Processing by Ckeditor::PicturesController#create as HTML
9350
+ Parameters: {"qqfile"=>nil}
9351
+  (0.1ms) SAVEPOINT active_record_1
9352
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9353
+ Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 0.2ms)
9354
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9355
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9356
+  (0.1ms) rollback transaction
9357
+  (0.1ms) begin transaction
9358
+  (0.1ms) SAVEPOINT active_record_1
9359
+ SQL (0.5ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:13:20 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:13:20 UTC +00:00]]
9360
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9361
+ Processing by PostsController#new as HTML
9362
+ Rendered posts/_form.html.erb (7.5ms)
9363
+ Completed 200 OK in 15ms (Views: 14.6ms | ActiveRecord: 0.0ms)
9364
+  (0.1ms) SAVEPOINT active_record_1
9365
+ SQL (0.2ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
9366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9367
+  (0.1ms) rollback transaction
9368
+  (0.1ms) begin transaction
9369
+  (0.1ms) SAVEPOINT active_record_1
9370
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:13:20 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:13:20 UTC +00:00]]
9371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9372
+ Processing by PostsController#index as HTML
9373
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
9374
+ Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.2ms)
9375
+  (0.1ms) SAVEPOINT active_record_1
9376
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
9377
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9378
+  (0.1ms) rollback transaction
9379
+  (0.1ms) begin transaction
9380
+  (0.1ms) SAVEPOINT active_record_1
9381
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:13:20 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:13:20 UTC +00:00]]
9382
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9383
+ Processing by PostsController#index as HTML
9384
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" 
9385
+ Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms)
9386
+  (0.1ms) SAVEPOINT active_record_1
9387
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
9388
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9389
+  (0.1ms) rollback transaction
9390
+  (0.1ms) begin transaction
9391
+  (0.0ms) SAVEPOINT active_record_1
9392
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:13:20 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:13:20 UTC +00:00]]
9393
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9394
+ Processing by PostsController#edit as HTML
9395
+ Parameters: {"id"=>"1"}
9396
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
9397
+ Rendered posts/_form.html.erb (5.0ms)
9398
+ Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.3ms)
9399
+  (0.1ms) SAVEPOINT active_record_1
9400
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
9401
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9402
+  (0.1ms) rollback transaction
9403
+  (0.1ms) begin transaction
9404
+  (0.1ms) rollback transaction
9405
+  (0.1ms) begin transaction
9406
+  (0.1ms) rollback transaction
9407
+  (0.1ms) select sqlite_version(*)
9408
+  (0.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
9409
+  (0.0ms) PRAGMA index_list("schema_migrations")
9410
+  (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9411
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9412
+ Migrating to CreatePosts (20110623120047)
9413
+  (0.1ms) begin transaction
9414
+  (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) 
9415
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110623120047')
9416
+  (0.1ms) commit transaction
9417
+  (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)
9418
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
9419
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
9420
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
9421
+  (0.1ms) PRAGMA index_info('idx_ckeditor_assetable_type')
9422
+  (0.2ms) CREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")
9423
+  (0.1ms) begin transaction
9424
+  (0.1ms) SAVEPOINT active_record_1
9425
+ SQL (56.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", Sat, 05 Jan 2013 22:14:51 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", Sat, 05 Jan 2013 22:14:51 UTC +00:00], ["width", nil]]
9426
+ [paperclip] Saving attachments.
9427
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9428
+  (0.1ms) SAVEPOINT active_record_1
9429
+ [paperclip] Scheduling attachments for deletion.
9430
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
9431
+ [paperclip] Deleting attachments.
9432
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
9433
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9434
+  (0.1ms) rollback transaction
9435
+  (0.1ms) begin transaction
9436
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9437
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
9438
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xa97291c @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-25520-nvjgj6>>, "CKEditor"=>"ckeditor_field"}
9439
+  (0.1ms) SAVEPOINT active_record_1
9440
+ 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", Sat, 05 Jan 2013 22:14:51 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", Sat, 05 Jan 2013 22:14:51 UTC +00:00], ["width", nil]]
9441
+ [paperclip] Saving attachments.
9442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9443
+ Rendered text template (0.0ms)
9444
+ Completed 200 OK in 192ms (Views: 66.8ms | ActiveRecord: 0.7ms)
9445
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9446
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9447
+  (0.1ms) SAVEPOINT active_record_1
9448
+ [paperclip] Scheduling attachments for deletion.
9449
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
9450
+ [paperclip] Deleting attachments.
9451
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
9452
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9453
+  (0.1ms) rollback transaction
9454
+  (0.1ms) begin transaction
9455
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9456
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
9457
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xa34c6b4 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-25520-dhrn3c>>}
9458
+  (0.1ms) SAVEPOINT active_record_1
9459
+ 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", Sat, 05 Jan 2013 22:14:51 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", Sat, 05 Jan 2013 22:14:51 UTC +00:00], ["width", nil]]
9460
+ [paperclip] Saving attachments.
9461
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9462
+ Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 0.6ms)
9463
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9464
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9465
+  (0.1ms) SAVEPOINT active_record_1
9466
+ [paperclip] Scheduling attachments for deletion.
9467
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
9468
+ [paperclip] Deleting attachments.
9469
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
9470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9471
+  (0.1ms) rollback transaction
9472
+  (0.1ms) begin transaction
9473
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9474
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
9475
+ Parameters: {"qqfile"=>"rails.tar.gz"}
9476
+  (0.1ms) SAVEPOINT active_record_1
9477
+ 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", Sat, 05 Jan 2013 22:14:51 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", Sat, 05 Jan 2013 22:14:51 UTC +00:00], ["width", nil]]
9478
+ [paperclip] Saving attachments.
9479
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9480
+ Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 0.6ms)
9481
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9482
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9483
+  (0.1ms) SAVEPOINT active_record_1
9484
+ [paperclip] Scheduling attachments for deletion.
9485
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
9486
+ [paperclip] Deleting attachments.
9487
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
9488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9489
+  (0.1ms) rollback transaction
9490
+  (0.1ms) begin transaction
9491
+  (0.1ms) SAVEPOINT active_record_1
9492
+ 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", Sat, 05 Jan 2013 22:14:51 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", Sat, 05 Jan 2013 22:14:51 UTC +00:00], ["width", nil]]
9493
+ [paperclip] Saving attachments.
9494
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9495
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9496
+ Processing by Ckeditor::AttachmentFilesController#destroy as HTML
9497
+ Parameters: {"id"=>"1"}
9498
+ 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"]]
9499
+  (0.1ms) SAVEPOINT active_record_1
9500
+ [paperclip] Scheduling attachments for deletion.
9501
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
9502
+ [paperclip] Deleting attachments.
9503
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
9504
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9505
+ Redirected to http://test.host/ckeditor/attachment_files
9506
+ Completed 302 Found in 71ms (ActiveRecord: 0.0ms)
9507
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9508
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9509
+  (0.1ms) rollback transaction
9510
+  (0.1ms) begin transaction
9511
+ Processing by Ckeditor::AttachmentFilesController#index as HTML
9512
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') ORDER BY id desc
9513
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
9514
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (1.5ms)
9515
+ Completed 200 OK in 22ms (Views: 19.9ms | ActiveRecord: 0.3ms)
9516
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9517
+  (0.1ms) rollback transaction
9518
+  (0.1ms) begin transaction
9519
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9520
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
9521
+ Parameters: {"qqfile"=>nil}
9522
+  (0.1ms) SAVEPOINT active_record_1
9523
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9524
+ Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.2ms)
9525
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9526
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9527
+  (0.1ms) rollback transaction
9528
+  (0.1ms) begin transaction
9529
+  (0.1ms) rollback transaction
9530
+  (0.1ms) begin transaction
9531
+  (0.0ms) rollback transaction
9532
+  (0.1ms) begin transaction
9533
+  (0.1ms) rollback transaction
9534
+  (0.1ms) begin transaction
9535
+  (0.1ms) rollback transaction
9536
+  (0.1ms) begin transaction
9537
+  (0.1ms) rollback transaction
9538
+  (0.1ms) begin transaction
9539
+  (0.1ms) rollback transaction
9540
+  (0.1ms) begin transaction
9541
+  (0.1ms) rollback transaction
9542
+  (0.1ms) begin transaction
9543
+  (0.1ms) rollback transaction
9544
+  (0.1ms) begin transaction
9545
+  (0.1ms) rollback transaction
9546
+  (0.1ms) begin transaction
9547
+  (0.1ms) rollback transaction
9548
+  (0.1ms) begin transaction
9549
+ Command :: identify -format %wx%h '/tmp/rails20130106-25520-8lfj91.png[0]'
9550
+ Command :: convert '/tmp/rails20130106-25520-8lfj91.png[0]' -resize "800>" '/tmp/rails20130106-25520-8lfj9120130106-25520-1jnyj66'
9551
+ Command :: identify -format %wx%h '/tmp/rails20130106-25520-8lfj91.png[0]'
9552
+ Command :: convert '/tmp/rails20130106-25520-8lfj91.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25520-8lfj9120130106-25520-ohw4wt'
9553
+  (0.1ms) SAVEPOINT active_record_1
9554
+ Command :: identify -format %wx%h '/tmp/rails20130106-25520-8lfj91.png[0]'
9555
+ 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", Sat, 05 Jan 2013 22:14:52 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:14:52 UTC +00:00], ["width", 50]]
9556
+ [paperclip] Saving attachments.
9557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9558
+  (0.1ms) SAVEPOINT active_record_1
9559
+ [paperclip] Scheduling attachments for deletion.
9560
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9561
+ [paperclip] Deleting attachments.
9562
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9563
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9564
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9565
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9566
+  (0.1ms) rollback transaction
9567
+  (0.1ms) begin transaction
9568
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9569
+ Processing by Ckeditor::PicturesController#create as HTML
9570
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xbc01858 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-25520-frz57x>>, "CKEditor"=>"ckeditor_field"}
9571
+ Command :: identify -format %wx%h '/tmp/rails20130106-25520-15gphc1.png[0]'
9572
+ Command :: convert '/tmp/rails20130106-25520-15gphc1.png[0]' -resize "800>" '/tmp/rails20130106-25520-15gphc120130106-25520-u5654w'
9573
+ Command :: identify -format %wx%h '/tmp/rails20130106-25520-15gphc1.png[0]'
9574
+ Command :: convert '/tmp/rails20130106-25520-15gphc1.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25520-15gphc120130106-25520-pqait4'
9575
+  (0.2ms) SAVEPOINT active_record_1
9576
+ Command :: identify -format %wx%h '/tmp/rails20130106-25520-15gphc1.png[0]'
9577
+ 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", Sat, 05 Jan 2013 22:14:52 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:14:52 UTC +00:00], ["width", 50]]
9578
+ [paperclip] Saving attachments.
9579
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9580
+ Completed 200 OK in 163ms (Views: 1.4ms | ActiveRecord: 0.9ms)
9581
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9582
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9583
+  (0.1ms) SAVEPOINT active_record_1
9584
+ [paperclip] Scheduling attachments for deletion.
9585
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9586
+ [paperclip] Deleting attachments.
9587
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9588
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9589
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9591
+  (0.1ms) rollback transaction
9592
+  (0.1ms) begin transaction
9593
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9594
+ Processing by Ckeditor::PicturesController#create as HTML
9595
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xa3f6cb8 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-25520-12ezie8>>}
9596
+ Command :: identify -format %wx%h '/tmp/rails20130106-25520-1ewmshb.png[0]'
9597
+ Command :: convert '/tmp/rails20130106-25520-1ewmshb.png[0]' -resize "800>" '/tmp/rails20130106-25520-1ewmshb20130106-25520-1257myj'
9598
+ Command :: identify -format %wx%h '/tmp/rails20130106-25520-1ewmshb.png[0]'
9599
+ Command :: convert '/tmp/rails20130106-25520-1ewmshb.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25520-1ewmshb20130106-25520-17xtgjs'
9600
+  (0.1ms) SAVEPOINT active_record_1
9601
+ Command :: identify -format %wx%h '/tmp/rails20130106-25520-1ewmshb.png[0]'
9602
+ 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", Sat, 05 Jan 2013 22:14:52 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:14:52 UTC +00:00], ["width", 50]]
9603
+ [paperclip] Saving attachments.
9604
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9605
+ Completed 200 OK in 101ms (Views: 0.7ms | ActiveRecord: 0.8ms)
9606
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9607
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9608
+  (0.1ms) SAVEPOINT active_record_1
9609
+ [paperclip] Scheduling attachments for deletion.
9610
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9611
+ [paperclip] Deleting attachments.
9612
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9613
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9614
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9615
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9616
+  (0.1ms) rollback transaction
9617
+  (0.1ms) begin transaction
9618
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9619
+ Processing by Ckeditor::PicturesController#create as HTML
9620
+ Parameters: {"qqfile"=>"rails.png"}
9621
+ Command :: identify -format %wx%h '/tmp/rails20130106-25520-mnkzds.png[0]'
9622
+ Command :: convert '/tmp/rails20130106-25520-mnkzds.png[0]' -resize "800>" '/tmp/rails20130106-25520-mnkzds20130106-25520-1u6k9hw'
9623
+ Command :: identify -format %wx%h '/tmp/rails20130106-25520-mnkzds.png[0]'
9624
+ Command :: convert '/tmp/rails20130106-25520-mnkzds.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25520-mnkzds20130106-25520-1uzgt79'
9625
+  (0.1ms) SAVEPOINT active_record_1
9626
+ Command :: identify -format %wx%h '/tmp/rails20130106-25520-mnkzds.png[0]'
9627
+ 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", Sat, 05 Jan 2013 22:14:52 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:14:52 UTC +00:00], ["width", 50]]
9628
+ [paperclip] Saving attachments.
9629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9630
+ Completed 200 OK in 102ms (Views: 0.7ms | ActiveRecord: 0.8ms)
9631
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9632
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9633
+  (0.1ms) SAVEPOINT active_record_1
9634
+ [paperclip] Scheduling attachments for deletion.
9635
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9636
+ [paperclip] Deleting attachments.
9637
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9638
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9639
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9640
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9641
+  (0.1ms) rollback transaction
9642
+  (0.1ms) begin transaction
9643
+ Command :: identify -format %wx%h '/tmp/rails20130106-25520-nr6mqb.png[0]'
9644
+ Command :: convert '/tmp/rails20130106-25520-nr6mqb.png[0]' -resize "800>" '/tmp/rails20130106-25520-nr6mqb20130106-25520-1xp7r77'
9645
+ Command :: identify -format %wx%h '/tmp/rails20130106-25520-nr6mqb.png[0]'
9646
+ Command :: convert '/tmp/rails20130106-25520-nr6mqb.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25520-nr6mqb20130106-25520-awmcgo'
9647
+  (0.2ms) SAVEPOINT active_record_1
9648
+ Command :: identify -format %wx%h '/tmp/rails20130106-25520-nr6mqb.png[0]'
9649
+ 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", Sat, 05 Jan 2013 22:14:52 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:14:52 UTC +00:00], ["width", 50]]
9650
+ [paperclip] Saving attachments.
9651
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9652
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9653
+ Processing by Ckeditor::PicturesController#destroy as HTML
9654
+ Parameters: {"id"=>"1"}
9655
+ 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"]]
9656
+  (0.1ms) SAVEPOINT active_record_1
9657
+ [paperclip] Scheduling attachments for deletion.
9658
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9659
+ [paperclip] Deleting attachments.
9660
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9661
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9662
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9663
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9664
+ Redirected to http://test.host/ckeditor/pictures
9665
+ Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
9666
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9667
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9668
+  (0.1ms) rollback transaction
9669
+  (0.1ms) begin transaction
9670
+ Processing by Ckeditor::PicturesController#index as HTML
9671
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') ORDER BY id desc
9672
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
9673
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (0.6ms)
9674
+ Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.3ms)
9675
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9676
+  (0.1ms) rollback transaction
9677
+  (0.1ms) begin transaction
9678
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9679
+ Processing by Ckeditor::PicturesController#create as HTML
9680
+ Parameters: {"qqfile"=>nil}
9681
+  (0.1ms) SAVEPOINT active_record_1
9682
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9683
+ Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 0.2ms)
9684
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9685
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9686
+  (0.1ms) rollback transaction
9687
+  (0.1ms) begin transaction
9688
+  (0.1ms) SAVEPOINT active_record_1
9689
+ SQL (0.5ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:14:52 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:14:52 UTC +00:00]]
9690
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9691
+ Processing by PostsController#new as HTML
9692
+ Rendered posts/_form.html.erb (8.1ms)
9693
+ Completed 200 OK in 16ms (Views: 14.9ms | ActiveRecord: 0.0ms)
9694
+  (0.1ms) SAVEPOINT active_record_1
9695
+ SQL (0.2ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
9696
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9697
+  (0.1ms) rollback transaction
9698
+  (0.1ms) begin transaction
9699
+  (0.1ms) SAVEPOINT active_record_1
9700
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:14:53 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:14:53 UTC +00:00]]
9701
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9702
+ Processing by PostsController#index as HTML
9703
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
9704
+ Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.2ms)
9705
+  (0.1ms) SAVEPOINT active_record_1
9706
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
9707
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9708
+  (0.1ms) rollback transaction
9709
+  (0.1ms) begin transaction
9710
+  (0.1ms) SAVEPOINT active_record_1
9711
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:14:53 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:14:53 UTC +00:00]]
9712
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9713
+ Processing by PostsController#index as HTML
9714
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" 
9715
+ Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms)
9716
+  (0.1ms) SAVEPOINT active_record_1
9717
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
9718
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9719
+  (0.1ms) rollback transaction
9720
+  (0.1ms) begin transaction
9721
+  (0.1ms) SAVEPOINT active_record_1
9722
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:14:53 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:14:53 UTC +00:00]]
9723
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9724
+ Processing by PostsController#edit as HTML
9725
+ Parameters: {"id"=>"1"}
9726
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
9727
+ Rendered posts/_form.html.erb (5.1ms)
9728
+ Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.3ms)
9729
+  (0.1ms) SAVEPOINT active_record_1
9730
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
9731
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9732
+  (0.1ms) rollback transaction
9733
+  (0.1ms) begin transaction
9734
+  (0.1ms) rollback transaction
9735
+  (0.1ms) begin transaction
9736
+  (0.1ms) rollback transaction
9737
+  (0.1ms) select sqlite_version(*)
9738
+  (0.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
9739
+  (0.0ms) PRAGMA index_list("schema_migrations")
9740
+  (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9741
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9742
+ Migrating to CreatePosts (20110623120047)
9743
+  (0.1ms) begin transaction
9744
+  (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) 
9745
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110623120047')
9746
+  (0.1ms) commit transaction
9747
+  (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)
9748
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
9749
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
9750
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
9751
+  (0.1ms) PRAGMA index_info('idx_ckeditor_assetable_type')
9752
+  (0.2ms) CREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")
9753
+  (0.1ms) begin transaction
9754
+  (0.1ms) SAVEPOINT active_record_1
9755
+ SQL (56.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", Sat, 05 Jan 2013 22:16:26 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", Sat, 05 Jan 2013 22:16:26 UTC +00:00], ["width", nil]]
9756
+ [paperclip] Saving attachments.
9757
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9758
+  (0.1ms) SAVEPOINT active_record_1
9759
+ [paperclip] Scheduling attachments for deletion.
9760
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
9761
+ [paperclip] Deleting attachments.
9762
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
9763
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9764
+  (0.1ms) rollback transaction
9765
+  (0.1ms) begin transaction
9766
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9767
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
9768
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0x9a41a4c @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-25611-h7wf6z>>, "CKEditor"=>"ckeditor_field"}
9769
+  (0.1ms) SAVEPOINT active_record_1
9770
+ 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", Sat, 05 Jan 2013 22:16:27 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", Sat, 05 Jan 2013 22:16:27 UTC +00:00], ["width", nil]]
9771
+ [paperclip] Saving attachments.
9772
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9773
+ Rendered text template (0.0ms)
9774
+ Completed 200 OK in 193ms (Views: 67.0ms | ActiveRecord: 0.7ms)
9775
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9776
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9777
+  (0.1ms) SAVEPOINT active_record_1
9778
+ [paperclip] Scheduling attachments for deletion.
9779
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
9780
+ [paperclip] Deleting attachments.
9781
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
9782
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9783
+  (0.1ms) rollback transaction
9784
+  (0.1ms) begin transaction
9785
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9786
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
9787
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0x981bb50 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-25611-cseptc>>}
9788
+  (0.1ms) SAVEPOINT active_record_1
9789
+ 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", Sat, 05 Jan 2013 22:16:27 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", Sat, 05 Jan 2013 22:16:27 UTC +00:00], ["width", nil]]
9790
+ [paperclip] Saving attachments.
9791
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9792
+ Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 0.6ms)
9793
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9794
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9795
+  (0.1ms) SAVEPOINT active_record_1
9796
+ [paperclip] Scheduling attachments for deletion.
9797
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
9798
+ [paperclip] Deleting attachments.
9799
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
9800
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9801
+  (0.1ms) rollback transaction
9802
+  (0.1ms) begin transaction
9803
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9804
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
9805
+ Parameters: {"qqfile"=>"rails.tar.gz"}
9806
+  (0.1ms) SAVEPOINT active_record_1
9807
+ 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", Sat, 05 Jan 2013 22:16:27 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", Sat, 05 Jan 2013 22:16:27 UTC +00:00], ["width", nil]]
9808
+ [paperclip] Saving attachments.
9809
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9810
+ Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 0.6ms)
9811
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9812
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9813
+  (0.1ms) SAVEPOINT active_record_1
9814
+ [paperclip] Scheduling attachments for deletion.
9815
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
9816
+ [paperclip] Deleting attachments.
9817
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
9818
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9819
+  (0.1ms) rollback transaction
9820
+  (0.1ms) begin transaction
9821
+  (0.1ms) SAVEPOINT active_record_1
9822
+ 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", Sat, 05 Jan 2013 22:16:27 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", Sat, 05 Jan 2013 22:16:27 UTC +00:00], ["width", nil]]
9823
+ [paperclip] Saving attachments.
9824
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9825
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9826
+ Processing by Ckeditor::AttachmentFilesController#destroy as HTML
9827
+ Parameters: {"id"=>"1"}
9828
+ 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"]]
9829
+  (0.1ms) SAVEPOINT active_record_1
9830
+ [paperclip] Scheduling attachments for deletion.
9831
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
9832
+ [paperclip] Deleting attachments.
9833
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
9834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9835
+ Redirected to http://test.host/ckeditor/attachment_files
9836
+ Completed 302 Found in 71ms (ActiveRecord: 0.0ms)
9837
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9838
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9839
+  (0.1ms) rollback transaction
9840
+  (0.1ms) begin transaction
9841
+ Processing by Ckeditor::AttachmentFilesController#index as HTML
9842
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') ORDER BY id desc
9843
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
9844
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (1.5ms)
9845
+ Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.3ms)
9846
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9847
+  (0.1ms) rollback transaction
9848
+  (0.1ms) begin transaction
9849
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9850
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
9851
+ Parameters: {"qqfile"=>nil}
9852
+  (0.1ms) SAVEPOINT active_record_1
9853
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9854
+ Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.2ms)
9855
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9856
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
9857
+  (0.1ms) rollback transaction
9858
+  (0.1ms) begin transaction
9859
+  (0.1ms) rollback transaction
9860
+  (0.1ms) begin transaction
9861
+  (0.0ms) rollback transaction
9862
+  (0.1ms) begin transaction
9863
+  (0.1ms) rollback transaction
9864
+  (0.1ms) begin transaction
9865
+  (0.1ms) rollback transaction
9866
+  (0.1ms) begin transaction
9867
+  (0.1ms) rollback transaction
9868
+  (0.1ms) begin transaction
9869
+  (0.1ms) rollback transaction
9870
+  (0.1ms) begin transaction
9871
+  (0.1ms) rollback transaction
9872
+  (0.1ms) begin transaction
9873
+  (0.1ms) rollback transaction
9874
+  (0.1ms) begin transaction
9875
+  (0.1ms) rollback transaction
9876
+  (0.1ms) begin transaction
9877
+  (0.1ms) rollback transaction
9878
+  (0.1ms) begin transaction
9879
+ Command :: identify -format %wx%h '/tmp/rails20130106-25611-1xfr93y.png[0]'
9880
+ Command :: convert '/tmp/rails20130106-25611-1xfr93y.png[0]' -resize "800>" '/tmp/rails20130106-25611-1xfr93y20130106-25611-2udqmf'
9881
+ Command :: identify -format %wx%h '/tmp/rails20130106-25611-1xfr93y.png[0]'
9882
+ Command :: convert '/tmp/rails20130106-25611-1xfr93y.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25611-1xfr93y20130106-25611-1aofw4h'
9883
+  (0.1ms) SAVEPOINT active_record_1
9884
+ Command :: identify -format %wx%h '/tmp/rails20130106-25611-1xfr93y.png[0]'
9885
+ 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", Sat, 05 Jan 2013 22:16:27 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:16:27 UTC +00:00], ["width", 50]]
9886
+ [paperclip] Saving attachments.
9887
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9888
+  (0.1ms) SAVEPOINT active_record_1
9889
+ [paperclip] Scheduling attachments for deletion.
9890
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9891
+ [paperclip] Deleting attachments.
9892
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9893
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9894
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9896
+  (0.1ms) rollback transaction
9897
+  (0.1ms) begin transaction
9898
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9899
+ Processing by Ckeditor::PicturesController#create as HTML
9900
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xa6b7c04 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-25611-167a7s7>>, "CKEditor"=>"ckeditor_field"}
9901
+ Command :: identify -format %wx%h '/tmp/rails20130106-25611-rudboq.png[0]'
9902
+ Command :: convert '/tmp/rails20130106-25611-rudboq.png[0]' -resize "800>" '/tmp/rails20130106-25611-rudboq20130106-25611-oy65e0'
9903
+ Command :: identify -format %wx%h '/tmp/rails20130106-25611-rudboq.png[0]'
9904
+ Command :: convert '/tmp/rails20130106-25611-rudboq.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25611-rudboq20130106-25611-1v0ttf7'
9905
+  (0.2ms) SAVEPOINT active_record_1
9906
+ Command :: identify -format %wx%h '/tmp/rails20130106-25611-rudboq.png[0]'
9907
+ 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", Sat, 05 Jan 2013 22:16:27 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:16:27 UTC +00:00], ["width", 50]]
9908
+ [paperclip] Saving attachments.
9909
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9910
+ Completed 200 OK in 162ms (Views: 1.3ms | ActiveRecord: 1.0ms)
9911
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9912
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9913
+  (0.1ms) SAVEPOINT active_record_1
9914
+ [paperclip] Scheduling attachments for deletion.
9915
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9916
+ [paperclip] Deleting attachments.
9917
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9918
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9919
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9920
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9921
+  (0.1ms) rollback transaction
9922
+  (0.1ms) begin transaction
9923
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9924
+ Processing by Ckeditor::PicturesController#create as HTML
9925
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0x9d32300 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-25611-1umvf4r>>}
9926
+ Command :: identify -format %wx%h '/tmp/rails20130106-25611-1boq48u.png[0]'
9927
+ Command :: convert '/tmp/rails20130106-25611-1boq48u.png[0]' -resize "800>" '/tmp/rails20130106-25611-1boq48u20130106-25611-1g2v21m'
9928
+ Command :: identify -format %wx%h '/tmp/rails20130106-25611-1boq48u.png[0]'
9929
+ Command :: convert '/tmp/rails20130106-25611-1boq48u.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25611-1boq48u20130106-25611-1nrxkto'
9930
+  (0.1ms) SAVEPOINT active_record_1
9931
+ Command :: identify -format %wx%h '/tmp/rails20130106-25611-1boq48u.png[0]'
9932
+ 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", Sat, 05 Jan 2013 22:16:27 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:16:27 UTC +00:00], ["width", 50]]
9933
+ [paperclip] Saving attachments.
9934
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9935
+ Completed 200 OK in 100ms (Views: 0.7ms | ActiveRecord: 0.9ms)
9936
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9937
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9938
+  (0.1ms) SAVEPOINT active_record_1
9939
+ [paperclip] Scheduling attachments for deletion.
9940
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9941
+ [paperclip] Deleting attachments.
9942
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9943
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9944
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9945
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9946
+  (0.1ms) rollback transaction
9947
+  (0.1ms) begin transaction
9948
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9949
+ Processing by Ckeditor::PicturesController#create as HTML
9950
+ Parameters: {"qqfile"=>"rails.png"}
9951
+ Command :: identify -format %wx%h '/tmp/rails20130106-25611-1coo362.png[0]'
9952
+ Command :: convert '/tmp/rails20130106-25611-1coo362.png[0]' -resize "800>" '/tmp/rails20130106-25611-1coo36220130106-25611-1y06lj8'
9953
+ Command :: identify -format %wx%h '/tmp/rails20130106-25611-1coo362.png[0]'
9954
+ Command :: convert '/tmp/rails20130106-25611-1coo362.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25611-1coo36220130106-25611-1k8abff'
9955
+  (0.1ms) SAVEPOINT active_record_1
9956
+ Command :: identify -format %wx%h '/tmp/rails20130106-25611-1coo362.png[0]'
9957
+ 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", Sat, 05 Jan 2013 22:16:28 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:16:28 UTC +00:00], ["width", 50]]
9958
+ [paperclip] Saving attachments.
9959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9960
+ Completed 200 OK in 100ms (Views: 0.7ms | ActiveRecord: 0.8ms)
9961
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9962
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9963
+  (0.1ms) SAVEPOINT active_record_1
9964
+ [paperclip] Scheduling attachments for deletion.
9965
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9966
+ [paperclip] Deleting attachments.
9967
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9968
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9969
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9970
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9971
+  (0.1ms) rollback transaction
9972
+  (0.1ms) begin transaction
9973
+ Command :: identify -format %wx%h '/tmp/rails20130106-25611-cwzq2a.png[0]'
9974
+ Command :: convert '/tmp/rails20130106-25611-cwzq2a.png[0]' -resize "800>" '/tmp/rails20130106-25611-cwzq2a20130106-25611-wse7ab'
9975
+ Command :: identify -format %wx%h '/tmp/rails20130106-25611-cwzq2a.png[0]'
9976
+ Command :: convert '/tmp/rails20130106-25611-cwzq2a.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25611-cwzq2a20130106-25611-bqx6dw'
9977
+  (0.2ms) SAVEPOINT active_record_1
9978
+ Command :: identify -format %wx%h '/tmp/rails20130106-25611-cwzq2a.png[0]'
9979
+ 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", Sat, 05 Jan 2013 22:16:28 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:16:28 UTC +00:00], ["width", 50]]
9980
+ [paperclip] Saving attachments.
9981
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9982
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9983
+ Processing by Ckeditor::PicturesController#destroy as HTML
9984
+ Parameters: {"id"=>"1"}
9985
+ 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"]]
9986
+  (0.1ms) SAVEPOINT active_record_1
9987
+ [paperclip] Scheduling attachments for deletion.
9988
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
9989
+ [paperclip] Deleting attachments.
9990
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
9991
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
9992
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
9993
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9994
+ Redirected to http://test.host/ckeditor/pictures
9995
+ Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
9996
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9997
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
9998
+  (0.1ms) rollback transaction
9999
+  (0.1ms) begin transaction
10000
+ Processing by Ckeditor::PicturesController#index as HTML
10001
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') ORDER BY id desc
10002
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
10003
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (0.6ms)
10004
+ Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.3ms)
10005
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10006
+  (0.1ms) rollback transaction
10007
+  (0.1ms) begin transaction
10008
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10009
+ Processing by Ckeditor::PicturesController#create as HTML
10010
+ Parameters: {"qqfile"=>nil}
10011
+  (0.1ms) SAVEPOINT active_record_1
10012
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10013
+ Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 0.2ms)
10014
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10015
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10016
+  (0.1ms) rollback transaction
10017
+  (0.1ms) begin transaction
10018
+  (0.1ms) SAVEPOINT active_record_1
10019
+ SQL (0.5ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:16:28 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:16:28 UTC +00:00]]
10020
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10021
+ Processing by PostsController#new as HTML
10022
+ Rendered posts/_form.html.erb (8.0ms)
10023
+ Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.0ms)
10024
+  (0.1ms) SAVEPOINT active_record_1
10025
+ SQL (0.2ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10026
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10027
+  (0.1ms) rollback transaction
10028
+  (0.1ms) begin transaction
10029
+  (0.1ms) SAVEPOINT active_record_1
10030
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:16:28 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:16:28 UTC +00:00]]
10031
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10032
+ Processing by PostsController#index as HTML
10033
+ Post Load (0.3ms) SELECT "posts".* FROM "posts"
10034
+ Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.3ms)
10035
+  (0.1ms) SAVEPOINT active_record_1
10036
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10038
+  (0.1ms) rollback transaction
10039
+  (0.1ms) begin transaction
10040
+  (0.1ms) SAVEPOINT active_record_1
10041
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:16:28 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:16:28 UTC +00:00]]
10042
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10043
+ Processing by PostsController#index as HTML
10044
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" 
10045
+ Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.3ms)
10046
+  (0.1ms) SAVEPOINT active_record_1
10047
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10049
+  (0.1ms) rollback transaction
10050
+  (0.1ms) begin transaction
10051
+  (0.1ms) SAVEPOINT active_record_1
10052
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:16:28 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:16:28 UTC +00:00]]
10053
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10054
+ Processing by PostsController#edit as HTML
10055
+ Parameters: {"id"=>"1"}
10056
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
10057
+ Rendered posts/_form.html.erb (5.0ms)
10058
+ Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.3ms)
10059
+  (0.1ms) SAVEPOINT active_record_1
10060
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10061
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10062
+  (0.1ms) rollback transaction
10063
+  (0.1ms) begin transaction
10064
+  (0.1ms) rollback transaction
10065
+  (0.1ms) begin transaction
10066
+  (0.1ms) rollback transaction
10067
+  (0.1ms) select sqlite_version(*)
10068
+  (0.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
10069
+  (0.0ms) PRAGMA index_list("schema_migrations")
10070
+  (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10071
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
10072
+ Migrating to CreatePosts (20110623120047)
10073
+  (0.1ms) begin transaction
10074
+  (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) 
10075
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110623120047')
10076
+  (0.1ms) commit transaction
10077
+  (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)
10078
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
10079
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
10080
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
10081
+  (0.1ms) PRAGMA index_info('idx_ckeditor_assetable_type')
10082
+  (0.2ms) CREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")
10083
+  (0.1ms) begin transaction
10084
+  (0.1ms) SAVEPOINT active_record_1
10085
+ SQL (56.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", Sat, 05 Jan 2013 22:17:52 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", Sat, 05 Jan 2013 22:17:52 UTC +00:00], ["width", nil]]
10086
+ [paperclip] Saving attachments.
10087
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10088
+  (0.1ms) SAVEPOINT active_record_1
10089
+ [paperclip] Scheduling attachments for deletion.
10090
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10091
+ [paperclip] Deleting attachments.
10092
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
10093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10094
+  (0.1ms) rollback transaction
10095
+  (0.1ms) begin transaction
10096
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10097
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
10098
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xa3c5e38 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-25705-c0bgxz>>, "CKEditor"=>"ckeditor_field"}
10099
+  (0.1ms) SAVEPOINT active_record_1
10100
+ 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", Sat, 05 Jan 2013 22:17:52 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", Sat, 05 Jan 2013 22:17:52 UTC +00:00], ["width", nil]]
10101
+ [paperclip] Saving attachments.
10102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10103
+ Rendered text template (0.0ms)
10104
+ Completed 200 OK in 192ms (Views: 66.9ms | ActiveRecord: 0.7ms)
10105
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10106
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10107
+  (0.1ms) SAVEPOINT active_record_1
10108
+ [paperclip] Scheduling attachments for deletion.
10109
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10110
+ [paperclip] Deleting attachments.
10111
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
10112
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10113
+  (0.1ms) rollback transaction
10114
+  (0.1ms) begin transaction
10115
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10116
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
10117
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xa0b0220 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-25705-h7e44r>>}
10118
+  (0.1ms) SAVEPOINT active_record_1
10119
+ 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", Sat, 05 Jan 2013 22:17:52 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", Sat, 05 Jan 2013 22:17:52 UTC +00:00], ["width", nil]]
10120
+ [paperclip] Saving attachments.
10121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10122
+ Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 0.6ms)
10123
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10124
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10125
+  (0.1ms) SAVEPOINT active_record_1
10126
+ [paperclip] Scheduling attachments for deletion.
10127
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10128
+ [paperclip] Deleting attachments.
10129
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
10130
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10131
+  (0.1ms) rollback transaction
10132
+  (0.1ms) begin transaction
10133
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10134
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
10135
+ Parameters: {"qqfile"=>"rails.tar.gz"}
10136
+  (0.1ms) SAVEPOINT active_record_1
10137
+ 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", Sat, 05 Jan 2013 22:17:52 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", Sat, 05 Jan 2013 22:17:52 UTC +00:00], ["width", nil]]
10138
+ [paperclip] Saving attachments.
10139
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10140
+ Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 0.6ms)
10141
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10142
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10143
+  (0.1ms) SAVEPOINT active_record_1
10144
+ [paperclip] Scheduling attachments for deletion.
10145
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10146
+ [paperclip] Deleting attachments.
10147
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
10148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10149
+  (0.1ms) rollback transaction
10150
+  (0.1ms) begin transaction
10151
+  (0.1ms) SAVEPOINT active_record_1
10152
+ 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", Sat, 05 Jan 2013 22:17:52 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", Sat, 05 Jan 2013 22:17:52 UTC +00:00], ["width", nil]]
10153
+ [paperclip] Saving attachments.
10154
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10155
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10156
+ Processing by Ckeditor::AttachmentFilesController#destroy as HTML
10157
+ Parameters: {"id"=>"1"}
10158
+ 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"]]
10159
+  (0.1ms) SAVEPOINT active_record_1
10160
+ [paperclip] Scheduling attachments for deletion.
10161
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10162
+ [paperclip] Deleting attachments.
10163
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/attachments/1/rails_tar.gz
10164
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10165
+ Redirected to http://test.host/ckeditor/attachment_files
10166
+ Completed 302 Found in 71ms (ActiveRecord: 0.0ms)
10167
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10168
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10169
+  (0.1ms) rollback transaction
10170
+  (0.1ms) begin transaction
10171
+ Processing by Ckeditor::AttachmentFilesController#index as HTML
10172
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') ORDER BY id desc
10173
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
10174
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (1.5ms)
10175
+ Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.3ms)
10176
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10177
+  (0.1ms) rollback transaction
10178
+  (0.1ms) begin transaction
10179
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10180
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
10181
+ Parameters: {"qqfile"=>nil}
10182
+  (0.2ms) SAVEPOINT active_record_1
10183
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10184
+ Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.2ms)
10185
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10186
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10187
+  (0.1ms) rollback transaction
10188
+  (0.1ms) begin transaction
10189
+  (0.1ms) rollback transaction
10190
+  (0.1ms) begin transaction
10191
+  (0.0ms) rollback transaction
10192
+  (0.1ms) begin transaction
10193
+  (0.1ms) rollback transaction
10194
+  (0.1ms) begin transaction
10195
+  (0.1ms) rollback transaction
10196
+  (0.1ms) begin transaction
10197
+  (0.1ms) rollback transaction
10198
+  (0.1ms) begin transaction
10199
+  (0.1ms) rollback transaction
10200
+  (0.1ms) begin transaction
10201
+  (0.1ms) rollback transaction
10202
+  (0.1ms) begin transaction
10203
+  (0.1ms) rollback transaction
10204
+  (0.1ms) begin transaction
10205
+  (0.1ms) rollback transaction
10206
+  (0.1ms) begin transaction
10207
+  (0.1ms) rollback transaction
10208
+  (0.1ms) begin transaction
10209
+ Command :: identify -format %wx%h '/tmp/rails20130106-25705-ft5jvw.png[0]'
10210
+ Command :: convert '/tmp/rails20130106-25705-ft5jvw.png[0]' -resize "800>" '/tmp/rails20130106-25705-ft5jvw20130106-25705-ngjr6a'
10211
+ Command :: identify -format %wx%h '/tmp/rails20130106-25705-ft5jvw.png[0]'
10212
+ Command :: convert '/tmp/rails20130106-25705-ft5jvw.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25705-ft5jvw20130106-25705-2r58i'
10213
+  (0.1ms) SAVEPOINT active_record_1
10214
+ Command :: identify -format %wx%h '/tmp/rails20130106-25705-ft5jvw.png[0]'
10215
+ 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", Sat, 05 Jan 2013 22:17:53 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:17:53 UTC +00:00], ["width", 50]]
10216
+ [paperclip] Saving attachments.
10217
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10218
+  (0.1ms) SAVEPOINT active_record_1
10219
+ [paperclip] Scheduling attachments for deletion.
10220
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
10221
+ [paperclip] Deleting attachments.
10222
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
10223
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
10224
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
10225
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10226
+  (0.1ms) rollback transaction
10227
+  (0.1ms) begin transaction
10228
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10229
+ Processing by Ckeditor::PicturesController#create as HTML
10230
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xb0b4c48 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-25705-yxoqs6>>, "CKEditor"=>"ckeditor_field"}
10231
+ Command :: identify -format %wx%h '/tmp/rails20130106-25705-xlkxn7.png[0]'
10232
+ Command :: convert '/tmp/rails20130106-25705-xlkxn7.png[0]' -resize "800>" '/tmp/rails20130106-25705-xlkxn720130106-25705-1256bcw'
10233
+ Command :: identify -format %wx%h '/tmp/rails20130106-25705-xlkxn7.png[0]'
10234
+ Command :: convert '/tmp/rails20130106-25705-xlkxn7.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25705-xlkxn720130106-25705-1qdcpgr'
10235
+  (0.2ms) SAVEPOINT active_record_1
10236
+ Command :: identify -format %wx%h '/tmp/rails20130106-25705-xlkxn7.png[0]'
10237
+ 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", Sat, 05 Jan 2013 22:17:53 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:17:53 UTC +00:00], ["width", 50]]
10238
+ [paperclip] Saving attachments.
10239
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10240
+ Completed 200 OK in 162ms (Views: 1.3ms | ActiveRecord: 0.9ms)
10241
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10242
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10243
+  (0.1ms) SAVEPOINT active_record_1
10244
+ [paperclip] Scheduling attachments for deletion.
10245
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
10246
+ [paperclip] Deleting attachments.
10247
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
10248
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
10249
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
10250
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10251
+  (0.1ms) rollback transaction
10252
+  (0.1ms) begin transaction
10253
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10254
+ Processing by Ckeditor::PicturesController#create as HTML
10255
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xa1fc354 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-25705-rsd99r>>}
10256
+ Command :: identify -format %wx%h '/tmp/rails20130106-25705-10dnm2s.png[0]'
10257
+ Command :: convert '/tmp/rails20130106-25705-10dnm2s.png[0]' -resize "800>" '/tmp/rails20130106-25705-10dnm2s20130106-25705-1nji2g'
10258
+ Command :: identify -format %wx%h '/tmp/rails20130106-25705-10dnm2s.png[0]'
10259
+ Command :: convert '/tmp/rails20130106-25705-10dnm2s.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25705-10dnm2s20130106-25705-1esoqci'
10260
+  (0.2ms) SAVEPOINT active_record_1
10261
+ Command :: identify -format %wx%h '/tmp/rails20130106-25705-10dnm2s.png[0]'
10262
+ 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", Sat, 05 Jan 2013 22:17:53 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:17:53 UTC +00:00], ["width", 50]]
10263
+ [paperclip] Saving attachments.
10264
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10265
+ Completed 200 OK in 101ms (Views: 0.7ms | ActiveRecord: 0.8ms)
10266
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10267
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10268
+  (0.1ms) SAVEPOINT active_record_1
10269
+ [paperclip] Scheduling attachments for deletion.
10270
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
10271
+ [paperclip] Deleting attachments.
10272
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
10273
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
10274
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
10275
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10276
+  (0.1ms) rollback transaction
10277
+  (0.1ms) begin transaction
10278
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10279
+ Processing by Ckeditor::PicturesController#create as HTML
10280
+ Parameters: {"qqfile"=>"rails.png"}
10281
+ Command :: identify -format %wx%h '/tmp/rails20130106-25705-1wr0wkr.png[0]'
10282
+ Command :: convert '/tmp/rails20130106-25705-1wr0wkr.png[0]' -resize "800>" '/tmp/rails20130106-25705-1wr0wkr20130106-25705-uxaepq'
10283
+ Command :: identify -format %wx%h '/tmp/rails20130106-25705-1wr0wkr.png[0]'
10284
+ Command :: convert '/tmp/rails20130106-25705-1wr0wkr.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25705-1wr0wkr20130106-25705-odn9lu'
10285
+  (0.1ms) SAVEPOINT active_record_1
10286
+ Command :: identify -format %wx%h '/tmp/rails20130106-25705-1wr0wkr.png[0]'
10287
+ 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", Sat, 05 Jan 2013 22:17:53 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:17:53 UTC +00:00], ["width", 50]]
10288
+ [paperclip] Saving attachments.
10289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10290
+ Completed 200 OK in 101ms (Views: 0.8ms | ActiveRecord: 0.8ms)
10291
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10292
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10293
+  (0.1ms) SAVEPOINT active_record_1
10294
+ [paperclip] Scheduling attachments for deletion.
10295
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
10296
+ [paperclip] Deleting attachments.
10297
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
10298
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
10299
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
10300
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10301
+  (0.1ms) rollback transaction
10302
+  (0.1ms) begin transaction
10303
+ Command :: identify -format %wx%h '/tmp/rails20130106-25705-15lm7j4.png[0]'
10304
+ Command :: convert '/tmp/rails20130106-25705-15lm7j4.png[0]' -resize "800>" '/tmp/rails20130106-25705-15lm7j420130106-25705-1dcjhij'
10305
+ Command :: identify -format %wx%h '/tmp/rails20130106-25705-15lm7j4.png[0]'
10306
+ Command :: convert '/tmp/rails20130106-25705-15lm7j4.png[0]' -resize "118x" -crop "118x100+0+25" +repage '/tmp/rails20130106-25705-15lm7j420130106-25705-14cma1x'
10307
+  (0.2ms) SAVEPOINT active_record_1
10308
+ Command :: identify -format %wx%h '/tmp/rails20130106-25705-15lm7j4.png[0]'
10309
+ 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", Sat, 05 Jan 2013 22:17:53 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:17:53 UTC +00:00], ["width", 50]]
10310
+ [paperclip] Saving attachments.
10311
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10312
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10313
+ Processing by Ckeditor::PicturesController#destroy as HTML
10314
+ Parameters: {"id"=>"1"}
10315
+ 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"]]
10316
+  (0.1ms) SAVEPOINT active_record_1
10317
+ [paperclip] Scheduling attachments for deletion.
10318
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
10319
+ [paperclip] Deleting attachments.
10320
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png
10321
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png
10322
+ [paperclip] deleting /var/www/gems/ckeditor/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png
10323
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10324
+ Redirected to http://test.host/ckeditor/pictures
10325
+ Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
10326
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10327
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10328
+  (0.1ms) rollback transaction
10329
+  (0.1ms) begin transaction
10330
+ Processing by Ckeditor::PicturesController#index as HTML
10331
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') ORDER BY id desc
10332
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
10333
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (0.6ms)
10334
+ Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.3ms)
10335
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10336
+  (0.1ms) rollback transaction
10337
+  (0.1ms) begin transaction
10338
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10339
+ Processing by Ckeditor::PicturesController#create as HTML
10340
+ Parameters: {"qqfile"=>nil}
10341
+  (0.1ms) SAVEPOINT active_record_1
10342
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10343
+ Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 0.2ms)
10344
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10345
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10346
+  (0.1ms) rollback transaction
10347
+  (0.1ms) begin transaction
10348
+  (0.1ms) SAVEPOINT active_record_1
10349
+ SQL (0.5ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:17:53 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:17:53 UTC +00:00]]
10350
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10351
+ Processing by PostsController#new as HTML
10352
+ Rendered posts/_form.html.erb (8.0ms)
10353
+ Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.0ms)
10354
+  (0.1ms) SAVEPOINT active_record_1
10355
+ SQL (0.2ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10356
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10357
+  (0.1ms) rollback transaction
10358
+  (0.1ms) begin transaction
10359
+  (0.1ms) SAVEPOINT active_record_1
10360
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:17:54 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:17:54 UTC +00:00]]
10361
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10362
+ Processing by PostsController#index as HTML
10363
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
10364
+ Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.2ms)
10365
+  (0.1ms) SAVEPOINT active_record_1
10366
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10367
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10368
+  (0.1ms) rollback transaction
10369
+  (0.1ms) begin transaction
10370
+  (0.1ms) SAVEPOINT active_record_1
10371
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:17:54 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:17:54 UTC +00:00]]
10372
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10373
+ Processing by PostsController#index as HTML
10374
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" 
10375
+ Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms)
10376
+  (0.1ms) SAVEPOINT active_record_1
10377
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10378
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10379
+  (0.1ms) rollback transaction
10380
+  (0.1ms) begin transaction
10381
+  (0.1ms) SAVEPOINT active_record_1
10382
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:17:54 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:17:54 UTC +00:00]]
10383
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10384
+ Processing by PostsController#edit as HTML
10385
+ Parameters: {"id"=>"1"}
10386
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
10387
+ Rendered posts/_form.html.erb (5.2ms)
10388
+ Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.3ms)
10389
+  (0.1ms) SAVEPOINT active_record_1
10390
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10392
+  (0.1ms) rollback transaction
10393
+  (0.1ms) begin transaction
10394
+  (0.1ms) rollback transaction
10395
+  (0.1ms) begin transaction
10396
+  (0.1ms) rollback transaction
10397
+  (0.1ms) select sqlite_version(*)
10398
+  (0.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
10399
+  (0.0ms) PRAGMA index_list("schema_migrations")
10400
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10401
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
10402
+ Migrating to CreatePosts (20110623120047)
10403
+  (0.1ms) begin transaction
10404
+  (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) 
10405
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110623120047')
10406
+  (0.1ms) commit transaction
10407
+  (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)
10408
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
10409
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
10410
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
10411
+  (0.1ms) PRAGMA index_info('idx_ckeditor_assetable_type')
10412
+  (0.2ms) CREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")
10413
+  (0.1ms) begin transaction
10414
+  (0.1ms) SAVEPOINT active_record_1
10415
+ 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", Sat, 05 Jan 2013 22:18:24 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", Sat, 05 Jan 2013 22:18:24 UTC +00:00], ["width", nil]]
10416
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10417
+  (0.1ms) SAVEPOINT active_record_1
10418
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10419
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10420
+  (0.1ms) rollback transaction
10421
+  (0.1ms) begin transaction
10422
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10423
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
10424
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0x8c19e74 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-25792-wu2hoh>>, "CKEditor"=>"ckeditor_field"}
10425
+  (0.1ms) SAVEPOINT active_record_1
10426
+ 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", Sat, 05 Jan 2013 22:18:24 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", Sat, 05 Jan 2013 22:18:24 UTC +00:00], ["width", nil]]
10427
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10428
+ Rendered text template (0.0ms)
10429
+ Completed 200 OK in 134ms (Views: 63.9ms | ActiveRecord: 0.6ms)
10430
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10431
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10432
+  (0.1ms) SAVEPOINT active_record_1
10433
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10434
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10435
+  (0.1ms) rollback transaction
10436
+  (0.1ms) begin transaction
10437
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10438
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
10439
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0x8f658a8 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-25792-9v2j1h>>}
10440
+  (0.1ms) SAVEPOINT active_record_1
10441
+ 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", Sat, 05 Jan 2013 22:18:24 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", Sat, 05 Jan 2013 22:18:24 UTC +00:00], ["width", nil]]
10442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10443
+ Completed 200 OK in 54ms (Views: 0.6ms | ActiveRecord: 0.6ms)
10444
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10445
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10446
+  (0.1ms) SAVEPOINT active_record_1
10447
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10448
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10449
+  (0.1ms) rollback transaction
10450
+  (0.1ms) begin transaction
10451
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10452
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
10453
+ Parameters: {"qqfile"=>"rails.tar.gz"}
10454
+  (0.1ms) SAVEPOINT active_record_1
10455
+ 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", Sat, 05 Jan 2013 22:18:24 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", Sat, 05 Jan 2013 22:18:24 UTC +00:00], ["width", nil]]
10456
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10457
+ Completed 200 OK in 9ms (Views: 0.5ms | ActiveRecord: 0.6ms)
10458
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10459
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10460
+  (0.1ms) SAVEPOINT active_record_1
10461
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10462
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10463
+  (0.1ms) rollback transaction
10464
+  (0.1ms) begin transaction
10465
+  (0.1ms) SAVEPOINT active_record_1
10466
+ SQL (0.3ms) 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", Sat, 05 Jan 2013 22:18:24 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", Sat, 05 Jan 2013 22:18:24 UTC +00:00], ["width", nil]]
10467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10468
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10469
+ Processing by Ckeditor::AttachmentFilesController#destroy as HTML
10470
+ Parameters: {"id"=>"1"}
10471
+ 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"]]
10472
+  (0.1ms) SAVEPOINT active_record_1
10473
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10475
+ Redirected to http://test.host/ckeditor/attachment_files
10476
+ Completed 302 Found in 17ms (ActiveRecord: 0.0ms)
10477
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10478
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10479
+  (0.1ms) rollback transaction
10480
+  (0.1ms) begin transaction
10481
+ Processing by Ckeditor::AttachmentFilesController#index as HTML
10482
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') ORDER BY id desc
10483
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
10484
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (1.5ms)
10485
+ Completed 200 OK in 82ms (Views: 79.4ms | ActiveRecord: 0.3ms)
10486
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10487
+  (0.1ms) rollback transaction
10488
+  (0.1ms) begin transaction
10489
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10490
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
10491
+ Parameters: {"qqfile"=>nil}
10492
+  (0.1ms) SAVEPOINT active_record_1
10493
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10494
+ Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 0.2ms)
10495
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10496
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10497
+  (0.1ms) rollback transaction
10498
+  (0.1ms) begin transaction
10499
+  (0.1ms) rollback transaction
10500
+  (0.1ms) begin transaction
10501
+  (0.0ms) rollback transaction
10502
+  (0.1ms) begin transaction
10503
+  (0.1ms) rollback transaction
10504
+  (0.1ms) begin transaction
10505
+  (0.1ms) rollback transaction
10506
+  (0.1ms) begin transaction
10507
+  (0.1ms) rollback transaction
10508
+  (0.1ms) begin transaction
10509
+  (0.1ms) rollback transaction
10510
+  (0.1ms) begin transaction
10511
+  (0.1ms) rollback transaction
10512
+  (0.1ms) begin transaction
10513
+  (0.1ms) rollback transaction
10514
+  (0.1ms) begin transaction
10515
+  (0.1ms) rollback transaction
10516
+  (0.1ms) begin transaction
10517
+  (0.1ms) rollback transaction
10518
+  (0.1ms) begin transaction
10519
+  (0.1ms) SAVEPOINT active_record_1
10520
+ 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", Sat, 05 Jan 2013 22:18:24 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:18:24 UTC +00:00], ["width", 50]]
10521
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10522
+  (0.1ms) SAVEPOINT active_record_1
10523
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
10524
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10525
+  (0.1ms) rollback transaction
10526
+  (0.1ms) begin transaction
10527
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10528
+ Processing by Ckeditor::PicturesController#create as HTML
10529
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0x8f58edc @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-25792-1nksio0>>, "CKEditor"=>"ckeditor_field"}
10530
+  (0.2ms) SAVEPOINT active_record_1
10531
+ 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", Sat, 05 Jan 2013 22:18:25 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:18:25 UTC +00:00], ["width", 50]]
10532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10533
+ Completed 200 OK in 216ms (Views: 1.3ms | ActiveRecord: 0.8ms)
10534
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10535
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10536
+  (0.1ms) SAVEPOINT active_record_1
10537
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
10538
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10539
+  (0.1ms) rollback transaction
10540
+  (0.1ms) begin transaction
10541
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10542
+ Processing by Ckeditor::PicturesController#create as HTML
10543
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0x926e590 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-25792-500cs>>}
10544
+  (0.1ms) SAVEPOINT active_record_1
10545
+ 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", Sat, 05 Jan 2013 22:18:25 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:18:25 UTC +00:00], ["width", 50]]
10546
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10547
+ Completed 200 OK in 162ms (Views: 0.7ms | ActiveRecord: 0.8ms)
10548
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10549
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10550
+  (0.1ms) SAVEPOINT active_record_1
10551
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
10552
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10553
+  (0.1ms) rollback transaction
10554
+  (0.1ms) begin transaction
10555
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10556
+ Processing by Ckeditor::PicturesController#create as HTML
10557
+ Parameters: {"qqfile"=>"rails.png"}
10558
+  (0.2ms) SAVEPOINT active_record_1
10559
+ 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", Sat, 05 Jan 2013 22:18:25 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:18:25 UTC +00:00], ["width", 50]]
10560
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10561
+ Completed 200 OK in 213ms (Views: 0.7ms | ActiveRecord: 0.8ms)
10562
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10563
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10564
+  (0.1ms) SAVEPOINT active_record_1
10565
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
10566
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10567
+  (0.1ms) rollback transaction
10568
+  (0.1ms) begin transaction
10569
+  (0.1ms) SAVEPOINT active_record_1
10570
+ 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", Sat, 05 Jan 2013 22:18:25 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:18:25 UTC +00:00], ["width", 50]]
10571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10572
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10573
+ Processing by Ckeditor::PicturesController#destroy as HTML
10574
+ Parameters: {"id"=>"1"}
10575
+ 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"]]
10576
+  (0.1ms) SAVEPOINT active_record_1
10577
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
10578
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10579
+ Redirected to http://test.host/ckeditor/pictures
10580
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
10581
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10582
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10583
+  (0.1ms) rollback transaction
10584
+  (0.1ms) begin transaction
10585
+ Processing by Ckeditor::PicturesController#index as HTML
10586
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') ORDER BY id desc
10587
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
10588
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (0.6ms)
10589
+ Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.3ms)
10590
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10591
+  (0.1ms) rollback transaction
10592
+  (0.1ms) begin transaction
10593
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10594
+ Processing by Ckeditor::PicturesController#create as HTML
10595
+ Parameters: {"qqfile"=>nil}
10596
+  (0.1ms) SAVEPOINT active_record_1
10597
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10598
+ Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.2ms)
10599
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10600
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10601
+  (0.1ms) rollback transaction
10602
+  (0.1ms) begin transaction
10603
+  (0.1ms) SAVEPOINT active_record_1
10604
+ SQL (0.5ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:18:25 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:18:25 UTC +00:00]]
10605
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10606
+ Processing by PostsController#new as HTML
10607
+ Rendered posts/_form.html.erb (7.8ms)
10608
+ Completed 200 OK in 15ms (Views: 14.5ms | ActiveRecord: 0.0ms)
10609
+  (0.1ms) SAVEPOINT active_record_1
10610
+ SQL (0.2ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10611
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10612
+  (0.1ms) rollback transaction
10613
+  (0.1ms) begin transaction
10614
+  (0.1ms) SAVEPOINT active_record_1
10615
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:18:26 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:18:26 UTC +00:00]]
10616
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10617
+ Processing by PostsController#index as HTML
10618
+ Post Load (0.3ms) SELECT "posts".* FROM "posts"
10619
+ Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.3ms)
10620
+  (0.1ms) SAVEPOINT active_record_1
10621
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10622
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10623
+  (0.1ms) rollback transaction
10624
+  (0.1ms) begin transaction
10625
+  (0.1ms) SAVEPOINT active_record_1
10626
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:18:26 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:18:26 UTC +00:00]]
10627
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10628
+ Processing by PostsController#index as HTML
10629
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" 
10630
+ Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.3ms)
10631
+  (0.1ms) SAVEPOINT active_record_1
10632
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10633
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10634
+  (0.1ms) rollback transaction
10635
+  (0.1ms) begin transaction
10636
+  (0.0ms) SAVEPOINT active_record_1
10637
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:18:26 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:18:26 UTC +00:00]]
10638
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10639
+ Processing by PostsController#edit as HTML
10640
+ Parameters: {"id"=>"1"}
10641
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
10642
+ Rendered posts/_form.html.erb (5.0ms)
10643
+ Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.3ms)
10644
+  (0.1ms) SAVEPOINT active_record_1
10645
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10646
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10647
+  (0.1ms) rollback transaction
10648
+  (0.1ms) begin transaction
10649
+  (0.1ms) rollback transaction
10650
+  (0.1ms) begin transaction
10651
+  (0.1ms) rollback transaction
10652
+  (0.1ms) select sqlite_version(*)
10653
+  (0.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
10654
+  (0.0ms) PRAGMA index_list("schema_migrations")
10655
+  (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10656
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
10657
+ Migrating to CreatePosts (20110623120047)
10658
+  (0.1ms) begin transaction
10659
+  (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) 
10660
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110623120047')
10661
+  (0.1ms) commit transaction
10662
+  (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)
10663
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
10664
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
10665
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
10666
+  (0.1ms) PRAGMA index_info('idx_ckeditor_assetable_type')
10667
+  (0.2ms) CREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")
10668
+  (0.1ms) begin transaction
10669
+  (0.1ms) SAVEPOINT active_record_1
10670
+ 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", Sat, 05 Jan 2013 22:30:00 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", Sat, 05 Jan 2013 22:30:00 UTC +00:00], ["width", nil]]
10671
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10672
+  (0.1ms) SAVEPOINT active_record_1
10673
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10674
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10675
+  (0.1ms) rollback transaction
10676
+  (0.1ms) begin transaction
10677
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10678
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
10679
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xb07cd34 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-26007-1fu2r6i>>, "CKEditor"=>"ckeditor_field"}
10680
+  (0.1ms) SAVEPOINT active_record_1
10681
+ 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", Sat, 05 Jan 2013 22:30:00 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", Sat, 05 Jan 2013 22:30:00 UTC +00:00], ["width", nil]]
10682
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10683
+ Rendered text template (0.0ms)
10684
+ Completed 200 OK in 134ms (Views: 63.9ms | ActiveRecord: 0.6ms)
10685
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10686
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10687
+  (0.1ms) SAVEPOINT active_record_1
10688
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10689
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10690
+  (0.1ms) rollback transaction
10691
+  (0.1ms) begin transaction
10692
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10693
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
10694
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xaf4f204 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-26007-160w2qv>>}
10695
+  (0.1ms) SAVEPOINT active_record_1
10696
+ 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", Sat, 05 Jan 2013 22:30:00 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", Sat, 05 Jan 2013 22:30:00 UTC +00:00], ["width", nil]]
10697
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10698
+ Completed 200 OK in 54ms (Views: 0.6ms | ActiveRecord: 0.6ms)
10699
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10700
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10701
+  (0.1ms) SAVEPOINT active_record_1
10702
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10703
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10704
+  (0.1ms) rollback transaction
10705
+  (0.1ms) begin transaction
10706
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10707
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
10708
+ Parameters: {"qqfile"=>"rails.tar.gz"}
10709
+  (0.1ms) SAVEPOINT active_record_1
10710
+ 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", Sat, 05 Jan 2013 22:30:00 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", Sat, 05 Jan 2013 22:30:00 UTC +00:00], ["width", nil]]
10711
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10712
+ Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 0.6ms)
10713
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10714
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10715
+  (0.1ms) SAVEPOINT active_record_1
10716
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10717
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10718
+  (0.1ms) rollback transaction
10719
+  (0.1ms) begin transaction
10720
+  (0.1ms) SAVEPOINT active_record_1
10721
+ SQL (0.3ms) 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", Sat, 05 Jan 2013 22:30:00 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", Sat, 05 Jan 2013 22:30:00 UTC +00:00], ["width", nil]]
10722
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10723
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10724
+ Processing by Ckeditor::AttachmentFilesController#destroy as HTML
10725
+ Parameters: {"id"=>"1"}
10726
+ 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"]]
10727
+  (0.1ms) SAVEPOINT active_record_1
10728
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10729
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10730
+ Redirected to http://test.host/ckeditor/attachment_files
10731
+ Completed 302 Found in 17ms (ActiveRecord: 0.0ms)
10732
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10733
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10734
+  (0.1ms) rollback transaction
10735
+  (0.1ms) begin transaction
10736
+ Processing by Ckeditor::AttachmentFilesController#index as HTML
10737
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') ORDER BY id desc
10738
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
10739
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (1.5ms)
10740
+ Completed 200 OK in 82ms (Views: 79.6ms | ActiveRecord: 0.3ms)
10741
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10742
+  (0.1ms) rollback transaction
10743
+  (0.1ms) begin transaction
10744
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10745
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
10746
+ Parameters: {"qqfile"=>nil}
10747
+  (0.1ms) SAVEPOINT active_record_1
10748
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10749
+ Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.2ms)
10750
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10751
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10752
+  (0.1ms) rollback transaction
10753
+  (0.1ms) begin transaction
10754
+  (0.1ms) rollback transaction
10755
+  (0.1ms) begin transaction
10756
+  (0.0ms) rollback transaction
10757
+  (0.1ms) begin transaction
10758
+  (0.1ms) rollback transaction
10759
+  (0.1ms) begin transaction
10760
+  (0.1ms) rollback transaction
10761
+  (0.1ms) begin transaction
10762
+  (0.1ms) rollback transaction
10763
+  (0.1ms) begin transaction
10764
+  (0.1ms) rollback transaction
10765
+  (0.1ms) begin transaction
10766
+  (0.1ms) rollback transaction
10767
+  (0.1ms) begin transaction
10768
+  (0.1ms) rollback transaction
10769
+  (0.1ms) begin transaction
10770
+  (0.1ms) rollback transaction
10771
+  (0.1ms) begin transaction
10772
+  (0.1ms) rollback transaction
10773
+  (0.1ms) begin transaction
10774
+  (0.1ms) SAVEPOINT active_record_1
10775
+ 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", Sat, 05 Jan 2013 22:30:01 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:30:01 UTC +00:00], ["width", 50]]
10776
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10777
+  (0.1ms) SAVEPOINT active_record_1
10778
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
10779
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10780
+  (0.1ms) rollback transaction
10781
+  (0.1ms) begin transaction
10782
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10783
+ Processing by Ckeditor::PicturesController#create as HTML
10784
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xb67af4c @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-26007-49ib3c>>, "CKEditor"=>"ckeditor_field"}
10785
+  (0.2ms) SAVEPOINT active_record_1
10786
+ 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", Sat, 05 Jan 2013 22:30:01 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:30:01 UTC +00:00], ["width", 50]]
10787
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10788
+ Completed 200 OK in 214ms (Views: 1.4ms | ActiveRecord: 0.8ms)
10789
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10790
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10791
+  (0.1ms) SAVEPOINT active_record_1
10792
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
10793
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10794
+  (0.1ms) rollback transaction
10795
+  (0.1ms) begin transaction
10796
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10797
+ Processing by Ckeditor::PicturesController#create as HTML
10798
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xa99b394 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-26007-whaelg>>}
10799
+  (0.1ms) SAVEPOINT active_record_1
10800
+ 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", Sat, 05 Jan 2013 22:30:01 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:30:01 UTC +00:00], ["width", 50]]
10801
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10802
+ Completed 200 OK in 160ms (Views: 0.7ms | ActiveRecord: 0.7ms)
10803
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10804
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10805
+  (0.1ms) SAVEPOINT active_record_1
10806
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
10807
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10808
+  (0.1ms) rollback transaction
10809
+  (0.1ms) begin transaction
10810
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10811
+ Processing by Ckeditor::PicturesController#create as HTML
10812
+ Parameters: {"qqfile"=>"rails.png"}
10813
+  (0.2ms) SAVEPOINT active_record_1
10814
+ 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", Sat, 05 Jan 2013 22:30:01 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:30:01 UTC +00:00], ["width", 50]]
10815
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10816
+ Completed 200 OK in 210ms (Views: 0.7ms | ActiveRecord: 0.8ms)
10817
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10818
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10819
+  (0.1ms) SAVEPOINT active_record_1
10820
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
10821
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10822
+  (0.1ms) rollback transaction
10823
+  (0.1ms) begin transaction
10824
+  (0.1ms) SAVEPOINT active_record_1
10825
+ 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", Sat, 05 Jan 2013 22:30:02 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:30:02 UTC +00:00], ["width", 50]]
10826
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10827
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10828
+ Processing by Ckeditor::PicturesController#destroy as HTML
10829
+ Parameters: {"id"=>"1"}
10830
+ 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"]]
10831
+  (0.1ms) SAVEPOINT active_record_1
10832
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
10833
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10834
+ Redirected to http://test.host/ckeditor/pictures
10835
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
10836
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10837
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10838
+  (0.1ms) rollback transaction
10839
+  (0.1ms) begin transaction
10840
+ Processing by Ckeditor::PicturesController#index as HTML
10841
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') ORDER BY id desc
10842
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
10843
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (0.6ms)
10844
+ Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.3ms)
10845
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10846
+  (0.1ms) rollback transaction
10847
+  (0.1ms) begin transaction
10848
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10849
+ Processing by Ckeditor::PicturesController#create as HTML
10850
+ Parameters: {"qqfile"=>nil}
10851
+  (0.1ms) SAVEPOINT active_record_1
10852
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10853
+ Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.2ms)
10854
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10855
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
10856
+  (0.1ms) rollback transaction
10857
+  (0.1ms) begin transaction
10858
+  (0.1ms) SAVEPOINT active_record_1
10859
+ SQL (0.5ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:30:02 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:30:02 UTC +00:00]]
10860
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10861
+ Processing by PostsController#new as HTML
10862
+ Rendered posts/_form.html.erb (7.8ms)
10863
+ Completed 200 OK in 15ms (Views: 14.5ms | ActiveRecord: 0.0ms)
10864
+  (0.1ms) SAVEPOINT active_record_1
10865
+ SQL (0.2ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10866
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10867
+  (0.1ms) rollback transaction
10868
+  (0.1ms) begin transaction
10869
+  (0.1ms) SAVEPOINT active_record_1
10870
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:30:02 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:30:02 UTC +00:00]]
10871
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10872
+ Processing by PostsController#index as HTML
10873
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
10874
+ Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.2ms)
10875
+  (0.1ms) SAVEPOINT active_record_1
10876
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10877
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10878
+  (0.1ms) rollback transaction
10879
+  (0.1ms) begin transaction
10880
+  (0.1ms) SAVEPOINT active_record_1
10881
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:30:02 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:30:02 UTC +00:00]]
10882
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10883
+ Processing by PostsController#index as HTML
10884
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" 
10885
+ Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms)
10886
+  (0.1ms) SAVEPOINT active_record_1
10887
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10888
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10889
+  (0.1ms) rollback transaction
10890
+  (0.1ms) begin transaction
10891
+  (0.0ms) SAVEPOINT active_record_1
10892
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:30:02 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:30:02 UTC +00:00]]
10893
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10894
+ Processing by PostsController#edit as HTML
10895
+ Parameters: {"id"=>"1"}
10896
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
10897
+ Rendered posts/_form.html.erb (5.0ms)
10898
+ Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.3ms)
10899
+  (0.1ms) SAVEPOINT active_record_1
10900
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
10901
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10902
+  (0.1ms) rollback transaction
10903
+  (0.1ms) begin transaction
10904
+  (0.1ms) rollback transaction
10905
+  (0.1ms) begin transaction
10906
+  (0.0ms) rollback transaction
10907
+  (0.1ms) select sqlite_version(*)
10908
+  (0.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
10909
+  (0.0ms) PRAGMA index_list("schema_migrations")
10910
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10911
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
10912
+ Migrating to CreatePosts (20110623120047)
10913
+  (0.1ms) begin transaction
10914
+  (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) 
10915
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110623120047')
10916
+  (0.1ms) commit transaction
10917
+  (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)
10918
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
10919
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
10920
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
10921
+  (0.1ms) PRAGMA index_info('idx_ckeditor_assetable_type')
10922
+  (0.2ms) CREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")
10923
+  (0.1ms) begin transaction
10924
+  (0.1ms) SAVEPOINT active_record_1
10925
+ 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", Sat, 05 Jan 2013 22:35:56 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", Sat, 05 Jan 2013 22:35:56 UTC +00:00], ["width", nil]]
10926
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10927
+  (0.1ms) SAVEPOINT active_record_1
10928
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10929
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10930
+  (0.1ms) rollback transaction
10931
+  (0.1ms) begin transaction
10932
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10933
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
10934
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xa599854 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-26200-1p6rtl2>>, "CKEditor"=>"ckeditor_field"}
10935
+  (0.1ms) SAVEPOINT active_record_1
10936
+ 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", Sat, 05 Jan 2013 22:35:56 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", Sat, 05 Jan 2013 22:35:56 UTC +00:00], ["width", nil]]
10937
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10938
+ Rendered text template (0.0ms)
10939
+ Completed 200 OK in 134ms (Views: 63.6ms | ActiveRecord: 0.6ms)
10940
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10941
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10942
+  (0.1ms) SAVEPOINT active_record_1
10943
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10944
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10945
+  (0.1ms) rollback transaction
10946
+  (0.1ms) begin transaction
10947
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10948
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
10949
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0x9a1c01c @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-26200-1xy98vi>>}
10950
+  (0.1ms) SAVEPOINT active_record_1
10951
+ 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", Sat, 05 Jan 2013 22:35:56 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", Sat, 05 Jan 2013 22:35:56 UTC +00:00], ["width", nil]]
10952
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10953
+ Completed 200 OK in 54ms (Views: 0.6ms | ActiveRecord: 0.6ms)
10954
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10955
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10956
+  (0.1ms) SAVEPOINT active_record_1
10957
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10958
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10959
+  (0.1ms) rollback transaction
10960
+  (0.1ms) begin transaction
10961
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10962
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
10963
+ Parameters: {"qqfile"=>"rails.tar.gz"}
10964
+  (0.1ms) SAVEPOINT active_record_1
10965
+ 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", Sat, 05 Jan 2013 22:35:56 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", Sat, 05 Jan 2013 22:35:56 UTC +00:00], ["width", nil]]
10966
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10967
+ Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 0.6ms)
10968
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10969
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10970
+  (0.1ms) SAVEPOINT active_record_1
10971
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10972
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10973
+  (0.1ms) rollback transaction
10974
+  (0.1ms) begin transaction
10975
+  (0.1ms) SAVEPOINT active_record_1
10976
+ SQL (0.3ms) 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", Sat, 05 Jan 2013 22:35:56 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", Sat, 05 Jan 2013 22:35:56 UTC +00:00], ["width", nil]]
10977
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10978
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10979
+ Processing by Ckeditor::AttachmentFilesController#destroy as HTML
10980
+ Parameters: {"id"=>"1"}
10981
+ 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"]]
10982
+  (0.1ms) SAVEPOINT active_record_1
10983
+ SQL (0.2ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
10984
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10985
+ Redirected to http://test.host/ckeditor/attachment_files
10986
+ Completed 302 Found in 17ms (ActiveRecord: 0.0ms)
10987
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10988
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10989
+  (0.1ms) rollback transaction
10990
+  (0.1ms) begin transaction
10991
+ Processing by Ckeditor::AttachmentFilesController#index as HTML
10992
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') ORDER BY id desc
10993
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
10994
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (1.5ms)
10995
+ Completed 200 OK in 82ms (Views: 79.5ms | ActiveRecord: 0.3ms)
10996
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
10997
+  (0.1ms) rollback transaction
10998
+  (0.1ms) begin transaction
10999
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11000
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11001
+ Parameters: {"qqfile"=>nil}
11002
+  (0.1ms) SAVEPOINT active_record_1
11003
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11004
+ Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 0.2ms)
11005
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11006
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11007
+  (0.1ms) rollback transaction
11008
+  (0.1ms) begin transaction
11009
+  (0.1ms) rollback transaction
11010
+  (0.1ms) begin transaction
11011
+  (0.0ms) rollback transaction
11012
+  (0.1ms) begin transaction
11013
+  (0.1ms) rollback transaction
11014
+  (0.1ms) begin transaction
11015
+  (0.1ms) rollback transaction
11016
+  (0.1ms) begin transaction
11017
+  (0.1ms) rollback transaction
11018
+  (0.1ms) begin transaction
11019
+  (0.1ms) rollback transaction
11020
+  (0.1ms) begin transaction
11021
+  (0.1ms) rollback transaction
11022
+  (0.1ms) begin transaction
11023
+  (0.1ms) rollback transaction
11024
+  (0.1ms) begin transaction
11025
+  (0.1ms) rollback transaction
11026
+  (0.1ms) begin transaction
11027
+  (0.1ms) rollback transaction
11028
+  (0.1ms) begin transaction
11029
+  (0.1ms) SAVEPOINT active_record_1
11030
+ 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", Sat, 05 Jan 2013 22:35:57 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:35:57 UTC +00:00], ["width", 50]]
11031
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11032
+  (0.1ms) SAVEPOINT active_record_1
11033
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
11034
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11035
+  (0.1ms) rollback transaction
11036
+  (0.1ms) begin transaction
11037
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11038
+ Processing by Ckeditor::PicturesController#create as HTML
11039
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0xa303374 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-26200-1pb927p>>, "CKEditor"=>"ckeditor_field"}
11040
+  (0.2ms) SAVEPOINT active_record_1
11041
+ 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", Sat, 05 Jan 2013 22:35:57 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:35:57 UTC +00:00], ["width", 50]]
11042
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11043
+ Completed 200 OK in 218ms (Views: 1.3ms | ActiveRecord: 0.8ms)
11044
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11045
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11046
+  (0.1ms) SAVEPOINT active_record_1
11047
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
11048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11049
+  (0.1ms) rollback transaction
11050
+  (0.1ms) begin transaction
11051
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11052
+ Processing by Ckeditor::PicturesController#create as HTML
11053
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xa3aba9c @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-26200-1k7d22v>>}
11054
+  (0.1ms) SAVEPOINT active_record_1
11055
+ 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", Sat, 05 Jan 2013 22:35:57 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:35:57 UTC +00:00], ["width", 50]]
11056
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11057
+ Completed 200 OK in 166ms (Views: 0.6ms | ActiveRecord: 0.7ms)
11058
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11059
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11060
+  (0.1ms) SAVEPOINT active_record_1
11061
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
11062
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11063
+  (0.1ms) rollback transaction
11064
+  (0.1ms) begin transaction
11065
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11066
+ Processing by Ckeditor::PicturesController#create as HTML
11067
+ Parameters: {"qqfile"=>"rails.png"}
11068
+  (0.2ms) SAVEPOINT active_record_1
11069
+ 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", Sat, 05 Jan 2013 22:35:57 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:35:57 UTC +00:00], ["width", 50]]
11070
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11071
+ Completed 200 OK in 219ms (Views: 0.7ms | ActiveRecord: 0.8ms)
11072
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11073
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11074
+  (0.1ms) SAVEPOINT active_record_1
11075
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
11076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11077
+  (0.1ms) rollback transaction
11078
+  (0.1ms) begin transaction
11079
+  (0.1ms) SAVEPOINT active_record_1
11080
+ 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", Sat, 05 Jan 2013 22:35:57 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:35:57 UTC +00:00], ["width", 50]]
11081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11082
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11083
+ Processing by Ckeditor::PicturesController#destroy as HTML
11084
+ Parameters: {"id"=>"1"}
11085
+ 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"]]
11086
+  (0.1ms) SAVEPOINT active_record_1
11087
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
11088
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11089
+ Redirected to http://test.host/ckeditor/pictures
11090
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
11091
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11092
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11093
+  (0.1ms) rollback transaction
11094
+  (0.1ms) begin transaction
11095
+ Processing by Ckeditor::PicturesController#index as HTML
11096
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') ORDER BY id desc
11097
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
11098
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (0.6ms)
11099
+ Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.3ms)
11100
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11101
+  (0.1ms) rollback transaction
11102
+  (0.1ms) begin transaction
11103
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11104
+ Processing by Ckeditor::PicturesController#create as HTML
11105
+ Parameters: {"qqfile"=>nil}
11106
+  (0.1ms) SAVEPOINT active_record_1
11107
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11108
+ Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.2ms)
11109
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11110
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11111
+  (0.1ms) rollback transaction
11112
+  (0.1ms) begin transaction
11113
+  (0.1ms) SAVEPOINT active_record_1
11114
+ SQL (0.5ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:35:58 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:35:58 UTC +00:00]]
11115
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11116
+ Processing by PostsController#new as HTML
11117
+ Rendered posts/_form.html.erb (7.7ms)
11118
+ Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.0ms)
11119
+  (0.1ms) SAVEPOINT active_record_1
11120
+ SQL (0.2ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11122
+  (0.1ms) rollback transaction
11123
+  (0.1ms) begin transaction
11124
+  (0.1ms) SAVEPOINT active_record_1
11125
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:35:58 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:35:58 UTC +00:00]]
11126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11127
+ Processing by PostsController#index as HTML
11128
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
11129
+ Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.2ms)
11130
+  (0.1ms) SAVEPOINT active_record_1
11131
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11132
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11133
+  (0.1ms) rollback transaction
11134
+  (0.1ms) begin transaction
11135
+  (0.1ms) SAVEPOINT active_record_1
11136
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:35:58 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:35:58 UTC +00:00]]
11137
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11138
+ Processing by PostsController#index as HTML
11139
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" 
11140
+ Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.3ms)
11141
+  (0.1ms) SAVEPOINT active_record_1
11142
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11144
+  (0.1ms) rollback transaction
11145
+  (0.1ms) begin transaction
11146
+  (0.1ms) SAVEPOINT active_record_1
11147
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:35:58 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:35:58 UTC +00:00]]
11148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11149
+ Processing by PostsController#edit as HTML
11150
+ Parameters: {"id"=>"1"}
11151
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
11152
+ Rendered posts/_form.html.erb (4.9ms)
11153
+ Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.3ms)
11154
+  (0.1ms) SAVEPOINT active_record_1
11155
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11156
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11157
+  (0.1ms) rollback transaction
11158
+  (0.1ms) begin transaction
11159
+  (0.1ms) rollback transaction
11160
+  (0.1ms) begin transaction
11161
+  (0.1ms) rollback transaction
11162
+  (0.1ms) select sqlite_version(*)
11163
+  (0.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
11164
+  (0.0ms) PRAGMA index_list("schema_migrations")
11165
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
11166
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
11167
+ Migrating to CreatePosts (20110623120047)
11168
+  (0.1ms) begin transaction
11169
+  (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) 
11170
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110623120047')
11171
+  (0.1ms) commit transaction
11172
+  (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)
11173
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
11174
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
11175
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
11176
+  (0.1ms) PRAGMA index_info('idx_ckeditor_assetable_type')
11177
+  (0.2ms) CREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")
11178
+  (0.1ms) begin transaction
11179
+  (0.1ms) SAVEPOINT active_record_1
11180
+ SQL (2.3ms) 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", Sat, 05 Jan 2013 22:42:38 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", Sat, 05 Jan 2013 22:42:38 UTC +00:00], ["width", nil]]
11181
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11182
+  (0.1ms) SAVEPOINT active_record_1
11183
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
11184
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11185
+  (0.1ms) rollback transaction
11186
+  (0.1ms) begin transaction
11187
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11188
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11189
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0x9a60320 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-26420-w0xd4k>>, "CKEditor"=>"ckeditor_field"}
11190
+  (0.1ms) SAVEPOINT active_record_1
11191
+ 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", Sat, 05 Jan 2013 22:42:38 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", Sat, 05 Jan 2013 22:42:38 UTC +00:00], ["width", nil]]
11192
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11193
+ Rendered text template (0.0ms)
11194
+ Completed 200 OK in 135ms (Views: 63.8ms | ActiveRecord: 0.6ms)
11195
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11196
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11197
+  (0.1ms) SAVEPOINT active_record_1
11198
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
11199
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11200
+  (0.1ms) rollback transaction
11201
+  (0.1ms) begin transaction
11202
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11203
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11204
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0x9c791e8 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-26420-metqyc>>}
11205
+  (0.1ms) SAVEPOINT active_record_1
11206
+ 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", Sat, 05 Jan 2013 22:42:38 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", Sat, 05 Jan 2013 22:42:38 UTC +00:00], ["width", nil]]
11207
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11208
+ Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 0.6ms)
11209
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11210
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11211
+  (0.1ms) SAVEPOINT active_record_1
11212
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
11213
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11214
+  (0.1ms) rollback transaction
11215
+  (0.1ms) begin transaction
11216
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11217
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11218
+ Parameters: {"qqfile"=>"rails.tar.gz"}
11219
+  (0.1ms) SAVEPOINT active_record_1
11220
+ 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", Sat, 05 Jan 2013 22:42:38 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", Sat, 05 Jan 2013 22:42:38 UTC +00:00], ["width", nil]]
11221
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11222
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 0.5ms)
11223
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11224
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11225
+  (0.1ms) SAVEPOINT active_record_1
11226
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
11227
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11228
+  (0.1ms) rollback transaction
11229
+  (0.1ms) begin transaction
11230
+  (0.1ms) SAVEPOINT active_record_1
11231
+ 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", Sat, 05 Jan 2013 22:42:38 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", Sat, 05 Jan 2013 22:42:38 UTC +00:00], ["width", nil]]
11232
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11233
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11234
+ Processing by Ckeditor::AttachmentFilesController#destroy as HTML
11235
+ Parameters: {"id"=>"1"}
11236
+ 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"]]
11237
+  (0.1ms) SAVEPOINT active_record_1
11238
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
11239
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11240
+ Redirected to http://test.host/ckeditor/attachment_files
11241
+ Completed 302 Found in 16ms (ActiveRecord: 0.0ms)
11242
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11243
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11244
+  (0.1ms) rollback transaction
11245
+  (0.1ms) begin transaction
11246
+ Processing by Ckeditor::AttachmentFilesController#index as HTML
11247
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') ORDER BY id desc
11248
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
11249
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (1.4ms)
11250
+ Completed 200 OK in 82ms (Views: 79.4ms | ActiveRecord: 0.3ms)
11251
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11252
+  (0.1ms) rollback transaction
11253
+  (0.1ms) begin transaction
11254
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11255
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11256
+ Parameters: {"qqfile"=>nil}
11257
+  (0.1ms) SAVEPOINT active_record_1
11258
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11259
+ Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 0.2ms)
11260
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11261
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11262
+  (0.1ms) rollback transaction
11263
+  (0.1ms) begin transaction
11264
+  (0.1ms) rollback transaction
11265
+  (0.1ms) begin transaction
11266
+  (0.0ms) rollback transaction
11267
+  (0.1ms) begin transaction
11268
+  (0.1ms) rollback transaction
11269
+  (0.1ms) begin transaction
11270
+  (0.1ms) rollback transaction
11271
+  (0.1ms) begin transaction
11272
+  (0.1ms) rollback transaction
11273
+  (0.1ms) begin transaction
11274
+  (0.1ms) rollback transaction
11275
+  (0.1ms) begin transaction
11276
+  (0.1ms) rollback transaction
11277
+  (0.1ms) begin transaction
11278
+  (0.1ms) rollback transaction
11279
+  (0.1ms) begin transaction
11280
+  (0.1ms) rollback transaction
11281
+  (0.1ms) begin transaction
11282
+  (0.1ms) rollback transaction
11283
+  (0.1ms) begin transaction
11284
+  (0.1ms) SAVEPOINT active_record_1
11285
+ 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", Sat, 05 Jan 2013 22:42:38 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:42:38 UTC +00:00], ["width", 50]]
11286
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11287
+  (0.1ms) SAVEPOINT active_record_1
11288
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
11289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11290
+  (0.1ms) rollback transaction
11291
+  (0.1ms) begin transaction
11292
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11293
+ Processing by Ckeditor::PicturesController#create as HTML
11294
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0x9a5eca0 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-26420-1l1ty45>>, "CKEditor"=>"ckeditor_field"}
11295
+  (0.1ms) SAVEPOINT active_record_1
11296
+ 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", Sat, 05 Jan 2013 22:42:38 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:42:38 UTC +00:00], ["width", 50]]
11297
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11298
+ Completed 200 OK in 216ms (Views: 1.3ms | ActiveRecord: 0.7ms)
11299
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11300
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11301
+  (0.1ms) SAVEPOINT active_record_1
11302
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
11303
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11304
+  (0.1ms) rollback transaction
11305
+  (0.1ms) begin transaction
11306
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11307
+ Processing by Ckeditor::PicturesController#create as HTML
11308
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0x90caea0 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-26420-okuxp2>>}
11309
+  (0.2ms) SAVEPOINT active_record_1
11310
+ 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", Sat, 05 Jan 2013 22:42:39 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:42:39 UTC +00:00], ["width", 50]]
11311
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11312
+ Completed 200 OK in 168ms (Views: 0.6ms | ActiveRecord: 0.8ms)
11313
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11314
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11315
+  (0.1ms) SAVEPOINT active_record_1
11316
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
11317
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11318
+  (0.1ms) rollback transaction
11319
+  (0.1ms) begin transaction
11320
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11321
+ Processing by Ckeditor::PicturesController#create as HTML
11322
+ Parameters: {"qqfile"=>"rails.png"}
11323
+  (0.1ms) SAVEPOINT active_record_1
11324
+ 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", Sat, 05 Jan 2013 22:42:39 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:42:39 UTC +00:00], ["width", 50]]
11325
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11326
+ Completed 200 OK in 162ms (Views: 0.5ms | ActiveRecord: 0.6ms)
11327
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11328
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11329
+  (0.1ms) SAVEPOINT active_record_1
11330
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
11331
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11332
+  (0.1ms) rollback transaction
11333
+  (0.1ms) begin transaction
11334
+  (0.2ms) SAVEPOINT active_record_1
11335
+ 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", Sat, 05 Jan 2013 22:42:39 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:42:39 UTC +00:00], ["width", 50]]
11336
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11337
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11338
+ Processing by Ckeditor::PicturesController#destroy as HTML
11339
+ Parameters: {"id"=>"1"}
11340
+ 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"]]
11341
+  (0.1ms) SAVEPOINT active_record_1
11342
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
11343
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11344
+ Redirected to http://test.host/ckeditor/pictures
11345
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
11346
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11347
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11348
+  (0.1ms) rollback transaction
11349
+  (0.1ms) begin transaction
11350
+ Processing by Ckeditor::PicturesController#index as HTML
11351
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') ORDER BY id desc
11352
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
11353
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (0.6ms)
11354
+ Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.3ms)
11355
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11356
+  (0.1ms) rollback transaction
11357
+  (0.1ms) begin transaction
11358
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11359
+ Processing by Ckeditor::PicturesController#create as HTML
11360
+ Parameters: {"qqfile"=>nil}
11361
+  (0.1ms) SAVEPOINT active_record_1
11362
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11363
+ Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.2ms)
11364
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11365
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11366
+  (0.1ms) rollback transaction
11367
+  (0.1ms) begin transaction
11368
+  (0.1ms) SAVEPOINT active_record_1
11369
+ SQL (0.5ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:42:39 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:42:39 UTC +00:00]]
11370
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11371
+ Processing by PostsController#new as HTML
11372
+ Rendered posts/_form.html.erb (7.4ms)
11373
+ Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.0ms)
11374
+  (0.1ms) SAVEPOINT active_record_1
11375
+ SQL (0.2ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11376
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11377
+  (0.1ms) rollback transaction
11378
+  (0.1ms) begin transaction
11379
+  (0.1ms) SAVEPOINT active_record_1
11380
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:42:39 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:42:39 UTC +00:00]]
11381
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11382
+ Processing by PostsController#index as HTML
11383
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
11384
+ Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.2ms)
11385
+  (0.1ms) SAVEPOINT active_record_1
11386
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11387
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11388
+  (0.1ms) rollback transaction
11389
+  (0.1ms) begin transaction
11390
+  (0.1ms) SAVEPOINT active_record_1
11391
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:42:39 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:42:39 UTC +00:00]]
11392
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11393
+ Processing by PostsController#index as HTML
11394
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" 
11395
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
11396
+  (0.1ms) SAVEPOINT active_record_1
11397
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11398
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11399
+  (0.1ms) rollback transaction
11400
+  (0.1ms) begin transaction
11401
+  (0.0ms) SAVEPOINT active_record_1
11402
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:42:39 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:42:39 UTC +00:00]]
11403
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11404
+ Processing by PostsController#edit as HTML
11405
+ Parameters: {"id"=>"1"}
11406
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
11407
+ Rendered posts/_form.html.erb (4.9ms)
11408
+ Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.3ms)
11409
+  (0.1ms) SAVEPOINT active_record_1
11410
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11412
+  (0.1ms) rollback transaction
11413
+  (0.1ms) begin transaction
11414
+  (0.1ms) rollback transaction
11415
+  (0.1ms) begin transaction
11416
+  (0.1ms) rollback transaction
11417
+  (0.1ms) select sqlite_version(*)
11418
+  (0.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
11419
+  (0.0ms) PRAGMA index_list("schema_migrations")
11420
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
11421
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
11422
+ Migrating to CreatePosts (20110623120047)
11423
+  (0.1ms) begin transaction
11424
+  (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) 
11425
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110623120047')
11426
+  (0.1ms) commit transaction
11427
+  (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)
11428
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
11429
+  (0.3ms) CREATE INDEX "idx_ckeditor_assetable_type" ON "ckeditor_assets" ("assetable_type", "type", "assetable_id")
11430
+  (0.1ms) PRAGMA index_list("ckeditor_assets")
11431
+  (0.1ms) PRAGMA index_info('idx_ckeditor_assetable_type')
11432
+  (0.2ms) CREATE INDEX "idx_ckeditor_assetable" ON "ckeditor_assets" ("assetable_type", "assetable_id")
11433
+  (0.1ms) begin transaction
11434
+  (0.1ms) SAVEPOINT active_record_1
11435
+ 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", Sat, 05 Jan 2013 22:56:54 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", Sat, 05 Jan 2013 22:56:54 UTC +00:00], ["width", nil]]
11436
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11437
+  (0.1ms) SAVEPOINT active_record_1
11438
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
11439
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11440
+  (0.1ms) rollback transaction
11441
+  (0.1ms) begin transaction
11442
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11443
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11444
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0x9ad7484 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-26931-b27p91>>, "CKEditor"=>"ckeditor_field"}
11445
+  (0.1ms) SAVEPOINT active_record_1
11446
+ 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", Sat, 05 Jan 2013 22:56:55 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", Sat, 05 Jan 2013 22:56:55 UTC +00:00], ["width", nil]]
11447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11448
+ Rendered text template (0.0ms)
11449
+ Completed 200 OK in 134ms (Views: 63.0ms | ActiveRecord: 0.6ms)
11450
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11451
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11452
+  (0.1ms) SAVEPOINT active_record_1
11453
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
11454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11455
+  (0.1ms) rollback transaction
11456
+  (0.1ms) begin transaction
11457
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11458
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11459
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0xa2be3f0 @content_type="application/x-gzip", @original_filename="rails.tar.gz", @tempfile=#<File:/tmp/rails.tar.gz20130106-26931-kgq8j>>}
11460
+  (0.1ms) SAVEPOINT active_record_1
11461
+ 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", Sat, 05 Jan 2013 22:56:55 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", Sat, 05 Jan 2013 22:56:55 UTC +00:00], ["width", nil]]
11462
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11463
+ Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 0.6ms)
11464
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11465
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11466
+  (0.1ms) SAVEPOINT active_record_1
11467
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
11468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11469
+  (0.1ms) rollback transaction
11470
+  (0.1ms) begin transaction
11471
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11472
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11473
+ Parameters: {"qqfile"=>"rails.tar.gz"}
11474
+  (0.1ms) SAVEPOINT active_record_1
11475
+ 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", Sat, 05 Jan 2013 22:56:55 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", Sat, 05 Jan 2013 22:56:55 UTC +00:00], ["width", nil]]
11476
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11477
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 0.5ms)
11478
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11479
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11480
+  (0.1ms) SAVEPOINT active_record_1
11481
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
11482
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11483
+  (0.1ms) rollback transaction
11484
+  (0.1ms) begin transaction
11485
+  (0.1ms) SAVEPOINT active_record_1
11486
+ 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", Sat, 05 Jan 2013 22:56:55 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", Sat, 05 Jan 2013 22:56:55 UTC +00:00], ["width", nil]]
11487
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11488
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11489
+ Processing by Ckeditor::AttachmentFilesController#destroy as HTML
11490
+ Parameters: {"id"=>"1"}
11491
+ 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"]]
11492
+  (0.1ms) SAVEPOINT active_record_1
11493
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') AND "ckeditor_assets"."id" = ? [["id", 1]]
11494
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11495
+ Redirected to http://test.host/ckeditor/attachment_files
11496
+ Completed 302 Found in 16ms (ActiveRecord: 0.0ms)
11497
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11498
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11499
+  (0.1ms) rollback transaction
11500
+  (0.1ms) begin transaction
11501
+ Processing by Ckeditor::AttachmentFilesController#index as HTML
11502
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile') ORDER BY id desc
11503
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
11504
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (1.5ms)
11505
+ Completed 200 OK in 81ms (Views: 79.1ms | ActiveRecord: 0.3ms)
11506
+ Ckeditor::AttachmentFile Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11507
+  (0.1ms) rollback transaction
11508
+  (0.1ms) begin transaction
11509
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11510
+ Processing by Ckeditor::AttachmentFilesController#create as HTML
11511
+ Parameters: {"qqfile"=>nil}
11512
+  (0.1ms) SAVEPOINT active_record_1
11513
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11514
+ Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.2ms)
11515
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11516
+ Ckeditor::AttachmentFile Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::AttachmentFile')
11517
+  (0.1ms) rollback transaction
11518
+  (0.1ms) begin transaction
11519
+  (0.1ms) rollback transaction
11520
+  (0.1ms) begin transaction
11521
+  (0.0ms) rollback transaction
11522
+  (0.1ms) begin transaction
11523
+  (0.1ms) rollback transaction
11524
+  (0.1ms) begin transaction
11525
+  (0.1ms) rollback transaction
11526
+  (0.1ms) begin transaction
11527
+  (0.1ms) rollback transaction
11528
+  (0.1ms) begin transaction
11529
+  (0.1ms) rollback transaction
11530
+  (0.1ms) begin transaction
11531
+  (0.1ms) rollback transaction
11532
+  (0.1ms) begin transaction
11533
+  (0.1ms) rollback transaction
11534
+  (0.1ms) begin transaction
11535
+  (0.1ms) rollback transaction
11536
+  (0.1ms) begin transaction
11537
+  (0.1ms) rollback transaction
11538
+  (0.1ms) begin transaction
11539
+  (0.2ms) SAVEPOINT active_record_1
11540
+ 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", Sat, 05 Jan 2013 22:56:55 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:56:55 UTC +00:00], ["width", 50]]
11541
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11542
+  (0.1ms) SAVEPOINT active_record_1
11543
+ SQL (0.3ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
11544
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11545
+  (0.1ms) rollback transaction
11546
+  (0.1ms) begin transaction
11547
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11548
+ Processing by Ckeditor::PicturesController#create as HTML
11549
+ Parameters: {"upload"=>#<Rack::Test::UploadedFile:0x9ad3bb8 @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-26931-a94cw0>>, "CKEditor"=>"ckeditor_field"}
11550
+  (0.1ms) SAVEPOINT active_record_1
11551
+ 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", Sat, 05 Jan 2013 22:56:55 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:56:55 UTC +00:00], ["width", 50]]
11552
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11553
+ Completed 200 OK in 212ms (Views: 1.3ms | ActiveRecord: 0.8ms)
11554
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11555
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11556
+  (0.1ms) SAVEPOINT active_record_1
11557
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
11558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11559
+  (0.1ms) rollback transaction
11560
+  (0.1ms) begin transaction
11561
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11562
+ Processing by Ckeditor::PicturesController#create as HTML
11563
+ Parameters: {"qqfile"=>#<Rack::Test::UploadedFile:0x9d5ba0c @content_type="image/png", @original_filename="rails.png", @tempfile=#<File:/tmp/rails.png20130106-26931-14b2p9o>>}
11564
+  (0.1ms) SAVEPOINT active_record_1
11565
+ 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", Sat, 05 Jan 2013 22:56:56 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:56:56 UTC +00:00], ["width", 50]]
11566
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11567
+ Completed 200 OK in 160ms (Views: 0.7ms | ActiveRecord: 0.7ms)
11568
+  (0.3ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11569
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11570
+  (0.1ms) SAVEPOINT active_record_1
11571
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
11572
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11573
+  (0.1ms) rollback transaction
11574
+  (0.1ms) begin transaction
11575
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11576
+ Processing by Ckeditor::PicturesController#create as HTML
11577
+ Parameters: {"qqfile"=>"rails.png"}
11578
+  (0.1ms) SAVEPOINT active_record_1
11579
+ 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", Sat, 05 Jan 2013 22:56:56 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:56:56 UTC +00:00], ["width", 50]]
11580
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11581
+ Completed 200 OK in 156ms (Views: 0.5ms | ActiveRecord: 0.6ms)
11582
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11583
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11584
+  (0.1ms) SAVEPOINT active_record_1
11585
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
11586
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11587
+  (0.1ms) rollback transaction
11588
+  (0.1ms) begin transaction
11589
+  (0.2ms) SAVEPOINT active_record_1
11590
+ 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", Sat, 05 Jan 2013 22:56:56 UTC +00:00], ["data_content_type", "image/png"], ["data_file_name", "rails.png"], ["data_file_size", 6646], ["height", 64], ["type", "Ckeditor::Picture"], ["updated_at", Sat, 05 Jan 2013 22:56:56 UTC +00:00], ["width", 50]]
11591
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11592
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11593
+ Processing by Ckeditor::PicturesController#destroy as HTML
11594
+ Parameters: {"id"=>"1"}
11595
+ 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"]]
11596
+  (0.1ms) SAVEPOINT active_record_1
11597
+ SQL (0.1ms) DELETE FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') AND "ckeditor_assets"."id" = ? [["id", 1]]
11598
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11599
+ Redirected to http://test.host/ckeditor/pictures
11600
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
11601
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11602
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11603
+  (0.2ms) rollback transaction
11604
+  (0.1ms) begin transaction
11605
+ Processing by Ckeditor::PicturesController#index as HTML
11606
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture') ORDER BY id desc
11607
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset.html.erb (0.0ms)
11608
+ Rendered /var/www/gems/ckeditor/app/views/ckeditor/shared/_asset_tmpl.html.erb (0.6ms)
11609
+ Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.3ms)
11610
+ Ckeditor::Picture Load (0.3ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11611
+  (0.1ms) rollback transaction
11612
+  (0.1ms) begin transaction
11613
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11614
+ Processing by Ckeditor::PicturesController#create as HTML
11615
+ Parameters: {"qqfile"=>nil}
11616
+  (0.1ms) SAVEPOINT active_record_1
11617
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11618
+ Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.2ms)
11619
+  (0.2ms) SELECT COUNT(*) FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11620
+ Ckeditor::Picture Load (0.2ms) SELECT "ckeditor_assets".* FROM "ckeditor_assets" WHERE "ckeditor_assets"."type" IN ('Ckeditor::Picture')
11621
+  (0.1ms) rollback transaction
11622
+  (0.1ms) begin transaction
11623
+  (0.1ms) SAVEPOINT active_record_1
11624
+ SQL (0.5ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:56:56 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:56:56 UTC +00:00]]
11625
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11626
+ Processing by PostsController#new as HTML
11627
+ Rendered posts/_form.html.erb (7.8ms)
11628
+ Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.0ms)
11629
+  (0.1ms) SAVEPOINT active_record_1
11630
+ SQL (0.2ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11631
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11632
+  (0.1ms) rollback transaction
11633
+  (0.1ms) begin transaction
11634
+  (0.1ms) SAVEPOINT active_record_1
11635
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:56:56 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:56:56 UTC +00:00]]
11636
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11637
+ Processing by PostsController#index as HTML
11638
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
11639
+ Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.2ms)
11640
+  (0.1ms) SAVEPOINT active_record_1
11641
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11642
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11643
+  (0.1ms) rollback transaction
11644
+  (0.1ms) begin transaction
11645
+  (0.1ms) SAVEPOINT active_record_1
11646
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:56:56 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:56:56 UTC +00:00]]
11647
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11648
+ Processing by PostsController#index as HTML
11649
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" 
11650
+ Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.3ms)
11651
+  (0.1ms) SAVEPOINT active_record_1
11652
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11653
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11654
+  (0.1ms) rollback transaction
11655
+  (0.1ms) begin transaction
11656
+  (0.0ms) SAVEPOINT active_record_1
11657
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "info", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "content"], ["created_at", Sat, 05 Jan 2013 22:56:56 UTC +00:00], ["info", "info"], ["title", "test"], ["updated_at", Sat, 05 Jan 2013 22:56:56 UTC +00:00]]
11658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11659
+ Processing by PostsController#edit as HTML
11660
+ Parameters: {"id"=>"1"}
11661
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
11662
+ Rendered posts/_form.html.erb (5.0ms)
11663
+ Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.3ms)
11664
+  (0.1ms) SAVEPOINT active_record_1
11665
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
11666
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11667
+  (0.1ms) rollback transaction
11668
+  (0.1ms) begin transaction
11669
+  (0.1ms) rollback transaction
11670
+  (0.1ms) begin transaction
11671
+  (0.1ms) rollback transaction