static_blocks 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. data/README.md +11 -40
  2. data/app/controllers/static_blocks/snippets_controller.rb +1 -1
  3. data/app/models/static_blocks/snippet.rb +1 -1
  4. data/app/views/layouts/static_blocks/application.html.erb +7 -11
  5. data/app/views/static_blocks/snippets/index.html.erb +19 -7
  6. data/lib/static_blocks/engine.rb +1 -2
  7. data/lib/static_blocks/version.rb +1 -1
  8. data/lib/templates/static_blocks_config_template.rb +1 -2
  9. data/spec/dummy/config/initializers/static_blocks.rb +1 -2
  10. data/spec/dummy/db/development.sqlite3 +0 -0
  11. data/spec/dummy/log/development.log +1027 -0
  12. data/spec/dummy/log/test.log +2667 -0
  13. data/spec/dummy/tmp/cache/assets/C16/1A0/sprockets%2F2601398660257e51059bc52de423d323 +0 -0
  14. data/spec/dummy/tmp/cache/assets/C3A/810/sprockets%2F605705bbd75a5708109a3052b34194a1 +0 -0
  15. data/spec/dummy/tmp/cache/assets/C4A/6A0/sprockets%2Ff6861a1825334631862c167ed0f7123a +0 -0
  16. data/spec/dummy/tmp/cache/assets/C5B/D30/sprockets%2F475c88209b37208f0f1bb0732794d949 +0 -0
  17. data/spec/dummy/tmp/cache/assets/C7D/7F0/sprockets%2F762ca18320b05c4dcb19345387d19748 +0 -0
  18. data/spec/dummy/tmp/cache/assets/C87/620/sprockets%2F3432446e738294254b2a8edee23c7809 +0 -0
  19. data/spec/dummy/tmp/cache/assets/C8A/300/sprockets%2F2104b69f493918404a1f8a87994a34bf +0 -0
  20. data/spec/dummy/tmp/cache/assets/C8E/D80/sprockets%2Fa97b8f843149ba7581718c5807e6007c +0 -0
  21. data/spec/dummy/tmp/cache/assets/C97/030/sprockets%2F8b75cc7d4c32fa7c8538195761991861 +0 -0
  22. data/spec/dummy/tmp/cache/assets/CA4/010/sprockets%2Fec5005e5e82c0615395661a01a3f92d5 +0 -0
  23. data/spec/dummy/tmp/cache/assets/CA9/970/sprockets%2F310361768173cd7837ce83aab0f4072e +0 -0
  24. data/spec/dummy/tmp/cache/assets/CAF/250/sprockets%2F695cc7162198de1072eb5cc70e554341 +0 -0
  25. data/spec/dummy/tmp/cache/assets/CB2/D80/sprockets%2F41e9f52ea9e7407742900b1f1488b3e2 +0 -0
  26. data/spec/dummy/tmp/cache/assets/CB4/030/sprockets%2F5198c8563ad145d1ca5a0999f1081c84 +0 -0
  27. data/spec/dummy/tmp/cache/assets/CB7/EC0/sprockets%2Ff04c678e03c83de63443a48f3b462558 +0 -0
  28. data/spec/dummy/tmp/cache/assets/CBB/020/sprockets%2Fc9e97251131e812f35cf7549db3919d1 +0 -0
  29. data/spec/dummy/tmp/cache/assets/CC1/5A0/sprockets%2F880ce77a9b28981a952adc78253d1844 +0 -0
  30. data/spec/dummy/tmp/cache/assets/CC1/B10/sprockets%2Fc82b423336136d99f466dcb67288d90f +0 -0
  31. data/spec/dummy/tmp/cache/assets/CC1/ED0/sprockets%2Fa14463bb037619fa57b714120bb5a0c3 +0 -0
  32. data/spec/dummy/tmp/cache/assets/CC2/670/sprockets%2Fd17023a53879279ed0e7f7c1d89449e1 +0 -0
  33. data/spec/dummy/tmp/cache/assets/CC8/000/sprockets%2F0bc300758d430bde61301f61b6a854f2 +0 -0
  34. data/spec/dummy/tmp/cache/assets/CD0/8E0/sprockets%2F3b144a88ab6c3c65fe025106b19f6340 +0 -0
  35. data/spec/dummy/tmp/cache/assets/CD3/490/sprockets%2F11f03626112ce8ec543b893403ecc5b7 +0 -0
  36. data/spec/dummy/tmp/cache/assets/CD4/0C0/sprockets%2F5b406e951c5c1452140487cfc390b6bb +0 -0
  37. data/spec/dummy/tmp/cache/assets/CD6/660/sprockets%2Fb453eb140b0090381fbc7f572e5c9661 +0 -0
  38. data/spec/dummy/tmp/cache/assets/CD6/7F0/sprockets%2F91cbf8a76219141565d2050f22ad8cb6 +0 -0
  39. data/spec/dummy/tmp/cache/assets/CD7/CD0/sprockets%2Ffbbcc4143d456d7e91eb039048421408 +0 -0
  40. data/spec/dummy/tmp/cache/assets/CDD/F30/sprockets%2F20c297571db26285acd5e44d592cb571 +0 -0
  41. data/spec/dummy/tmp/cache/assets/CE7/A70/sprockets%2F2b55b09649b414608458f27adcf9ac47 +0 -0
  42. data/spec/dummy/tmp/cache/assets/CF5/810/sprockets%2F1e87820b7e288fa1d49739666e5c4ef0 +0 -0
  43. data/spec/dummy/tmp/cache/assets/CF5/A40/sprockets%2F80540873f80200acdaf0d11cb1374af6 +0 -0
  44. data/spec/dummy/tmp/cache/assets/CF8/F40/sprockets%2Fcd85cf389205869733d7734f74fcda62 +0 -0
  45. data/spec/dummy/tmp/cache/assets/D0F/D90/sprockets%2Fec736ab89a4058519037fdd4d1c823d1 +0 -0
  46. data/spec/dummy/tmp/cache/assets/D10/5B0/sprockets%2Fc41632729b685a6b9f83f2376a2cb1ea +0 -0
  47. data/spec/dummy/tmp/cache/assets/D10/7B0/sprockets%2Ff332d859577ad7cd06825164eac15ad2 +0 -0
  48. data/spec/dummy/tmp/cache/assets/D11/6B0/sprockets%2F43f0522485f1d4839eb9206edb77bae2 +0 -0
  49. data/spec/dummy/tmp/cache/assets/D11/9D0/sprockets%2F0bd4e6571b02cf9b6b48316e7b72e791 +0 -0
  50. data/spec/dummy/tmp/cache/assets/D12/F20/sprockets%2Ff3d21e291a835448de7d3bf5f2a43637 +0 -0
  51. data/spec/dummy/tmp/cache/assets/D1D/050/sprockets%2F7aedf7b498014e5974f4b67fa14c9305 +0 -0
  52. data/spec/dummy/tmp/cache/assets/D25/8D0/sprockets%2F44965f99238d4fe5ae23f67a444d39ad +0 -0
  53. data/spec/dummy/tmp/cache/assets/D2F/110/sprockets%2Fcf56b560eb434174f78cb31aa14b4a80 +0 -0
  54. data/spec/dummy/tmp/cache/assets/D30/630/sprockets%2Fdddf26a6da0c736b28a04277c519502a +0 -0
  55. data/spec/dummy/tmp/cache/assets/D34/C00/sprockets%2Ffd8624610ba2f7fea171a7336aa9c514 +0 -0
  56. data/spec/dummy/tmp/cache/assets/D35/CF0/sprockets%2Ff8c2e0d9e9b09a4d909011da30179a0d +0 -0
  57. data/spec/dummy/tmp/cache/assets/D3B/610/sprockets%2F225f057b56da34ed126f8a8a72bbd772 +0 -0
  58. data/spec/dummy/tmp/cache/assets/D3D/DB0/sprockets%2Fc14384add0f1e8058b73570b30efe86e +0 -0
  59. data/spec/dummy/tmp/cache/assets/D3F/A00/sprockets%2F76cd0753ec4a038a2799cd601fa20f9f +0 -0
  60. data/spec/dummy/tmp/cache/assets/D48/AB0/sprockets%2Fcd1c409688c2e7f51573253df4ceeb56 +0 -0
  61. data/spec/dummy/tmp/cache/assets/D4B/E90/sprockets%2F9646a1fde44362be74e65c29c32fc76d +0 -0
  62. data/spec/dummy/tmp/cache/assets/D4C/E90/sprockets%2Fa1e865b2d2df0fd8890664cd44594dc7 +0 -0
  63. data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  64. data/spec/dummy/tmp/cache/assets/D50/470/sprockets%2F2bc1690c65d8ffbff84b58e810e63693 +0 -0
  65. data/spec/dummy/tmp/cache/assets/D5A/3D0/sprockets%2F85cb5c53462acba13e69b12b6e2c033d +0 -0
  66. data/spec/dummy/tmp/cache/assets/D5B/C00/sprockets%2F38b0a785ceedf25123aa8dbd0105225f +0 -0
  67. data/spec/dummy/tmp/cache/assets/D5B/EB0/sprockets%2Fa2a55bb00a9afe1277c704ec5a26665a +0 -0
  68. data/spec/dummy/tmp/cache/assets/D65/3F0/sprockets%2F26addecca4d7153fb4213e60f14d7836 +0 -0
  69. data/spec/dummy/tmp/cache/assets/D67/620/sprockets%2Fae8bfc4eae4e4370718a5b285b671a40 +0 -0
  70. data/spec/dummy/tmp/cache/assets/D69/3E0/sprockets%2F9ef0b2abfb14b285d44545e60e527b9a +0 -0
  71. data/spec/dummy/tmp/cache/assets/D6B/060/sprockets%2Fe0a029d4fd224317d9ab7f7b3494bbc8 +0 -0
  72. data/spec/dummy/tmp/cache/assets/D6B/C40/sprockets%2Fc85440bcb573c1a5ff18a8fb6d4b4463 +0 -0
  73. data/spec/dummy/tmp/cache/assets/D6D/810/sprockets%2Fd72f757b547f05b2afd239df53dc104c +0 -0
  74. data/spec/dummy/tmp/cache/assets/D74/340/sprockets%2F8e95109cb57af4ae4835f02d6bd690ea +0 -0
  75. data/spec/dummy/tmp/cache/assets/D76/190/sprockets%2F62924e8c547bbdbc6ba9f43e8380cd35 +0 -0
  76. data/spec/dummy/tmp/cache/assets/D7C/A40/sprockets%2Fb6af372375f71d03dad8f965c57cdd48 +0 -0
  77. data/spec/dummy/tmp/cache/assets/D81/F30/sprockets%2Feaa8dfd5f795d67d05b5d472e6c74616 +0 -0
  78. data/spec/dummy/tmp/cache/assets/D8F/A00/sprockets%2F735fd88a014bbad648e3fc70ce500b1a +0 -0
  79. data/spec/dummy/tmp/cache/assets/D96/3E0/sprockets%2Fbdcbd241d62118ab9819ce5b4e571d1f +0 -0
  80. data/spec/dummy/tmp/cache/assets/D97/680/sprockets%2F73b5cca7c32a9fa7cbf0689d21e1507a +0 -0
  81. data/spec/dummy/tmp/cache/assets/D97/BF0/sprockets%2F5aa8691b0f5bcde047c02e61ccc3b698 +0 -0
  82. data/spec/dummy/tmp/cache/assets/D9B/230/sprockets%2Fac3e6f2c126af2f73741e0af8a8647bd +0 -0
  83. data/spec/dummy/tmp/cache/assets/DA2/820/sprockets%2F9f81de74a49c9eaf25ad2de0d51c7801 +0 -0
  84. data/spec/dummy/tmp/cache/assets/DA7/A20/sprockets%2F9a4213e2ca34fbdccf94e787e4b8d905 +0 -0
  85. data/spec/dummy/tmp/cache/assets/DB2/050/sprockets%2F488fb6ca52e64a450f4e6cdef9f33f77 +0 -0
  86. data/spec/dummy/tmp/cache/assets/DB9/DC0/sprockets%2F7b11eba5ddb8588ee93f2f9fd981744f +0 -0
  87. data/spec/dummy/tmp/cache/assets/DC3/420/sprockets%2Fcda0f30c4febfa63021ac95477b6a67e +0 -0
  88. data/spec/dummy/tmp/cache/assets/DD0/8A0/sprockets%2Faf86c34ca2afc966cf4370ee066b7ca6 +0 -0
  89. data/spec/dummy/tmp/cache/assets/DDB/AF0/sprockets%2F3d9bb34819e9dccdea7d83843e2f38ab +0 -0
  90. data/spec/dummy/tmp/cache/assets/DE9/4C0/sprockets%2Fc0b7ac80e6e22db7d45aaabd0e292d35 +0 -0
  91. data/spec/dummy/tmp/cache/assets/DF2/D90/sprockets%2F3dbeffd475c4732a6e7d135c5bdaa02c +0 -0
  92. data/spec/dummy/tmp/cache/assets/DF3/0E0/sprockets%2F1ad9adc3493cc790d41ed8f30d1cb4cc +0 -0
  93. data/spec/dummy/tmp/cache/assets/DFC/5C0/sprockets%2Fcc26b95caff9bea54a9891d1deca0136 +0 -0
  94. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  95. data/spec/dummy/tmp/cache/assets/E17/100/sprockets%2F4fdcad0d6a3aa1bb204d55aeb138ce88 +0 -0
  96. data/spec/dummy/tmp/cache/assets/E24/DE0/sprockets%2Fc0c5fa7230d2f5effad432d3d57ebfc3 +0 -0
  97. data/spec/dummy/tmp/cache/assets/E3A/B90/sprockets%2F9bdcbf9c44dd2be2eef54f7dfe363543 +0 -0
  98. data/spec/dummy/tmp/cache/assets/E3E/0C0/sprockets%2Fc750cada3b9dfe6be9889b8c58ce3bb5 +0 -0
  99. data/spec/dummy/tmp/cache/assets/E48/120/sprockets%2F8c212dcabdbe64b8ee23c80a07eeaac2 +0 -0
  100. data/spec/dummy/tmp/cache/assets/E73/350/sprockets%2F96ef0e2f5ca7f994efb9a4eeff6ce4a0 +0 -0
  101. data/spec/dummy/tmp/cache/assets/E8F/A80/sprockets%2Fbfa1b4d49773afea9f056ffebde0dcb5 +0 -0
  102. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_accordion.scssc +0 -0
  103. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_alerts.scssc +0 -0
  104. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_breadcrumbs.scssc +0 -0
  105. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_button-groups.scssc +0 -0
  106. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_buttons.scssc +0 -0
  107. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_carousel.scssc +0 -0
  108. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_close.scssc +0 -0
  109. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_code.scssc +0 -0
  110. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_component-animations.scssc +0 -0
  111. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_dropdowns.scssc +0 -0
  112. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_forms.scssc +0 -0
  113. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_grid.scssc +0 -0
  114. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_hero-unit.scssc +0 -0
  115. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_labels-badges.scssc +0 -0
  116. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_layouts.scssc +0 -0
  117. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_media.scssc +0 -0
  118. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_mixins.scssc +0 -0
  119. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_modals.scssc +0 -0
  120. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_navbar.scssc +0 -0
  121. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_navs.scssc +0 -0
  122. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_pager.scssc +0 -0
  123. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_pagination.scssc +0 -0
  124. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_popovers.scssc +0 -0
  125. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_progress-bars.scssc +0 -0
  126. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_reset.scssc +0 -0
  127. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_scaffolding.scssc +0 -0
  128. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_sprites.scssc +0 -0
  129. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_tables.scssc +0 -0
  130. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_thumbnails.scssc +0 -0
  131. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_tooltip.scssc +0 -0
  132. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_type.scssc +0 -0
  133. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_utilities.scssc +0 -0
  134. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_variables.scssc +0 -0
  135. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/_wells.scssc +0 -0
  136. data/spec/dummy/tmp/cache/sass/8d8913252dfda27698089d16357a002b63c38f3a/bootstrap.scssc +0 -0
  137. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_accordion.scssc +0 -0
  138. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_alerts.scssc +0 -0
  139. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_breadcrumbs.scssc +0 -0
  140. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_button-groups.scssc +0 -0
  141. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_buttons.scssc +0 -0
  142. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_carousel.scssc +0 -0
  143. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_close.scssc +0 -0
  144. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_code.scssc +0 -0
  145. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_component-animations.scssc +0 -0
  146. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_dropdowns.scssc +0 -0
  147. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_forms.scssc +0 -0
  148. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_grid.scssc +0 -0
  149. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_hero-unit.scssc +0 -0
  150. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_labels-badges.scssc +0 -0
  151. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_layouts.scssc +0 -0
  152. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_media.scssc +0 -0
  153. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_mixins.scssc +0 -0
  154. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_modals.scssc +0 -0
  155. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_navbar.scssc +0 -0
  156. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_navs.scssc +0 -0
  157. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_pager.scssc +0 -0
  158. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_pagination.scssc +0 -0
  159. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_popovers.scssc +0 -0
  160. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_progress-bars.scssc +0 -0
  161. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_reset.scssc +0 -0
  162. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_scaffolding.scssc +0 -0
  163. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_sprites.scssc +0 -0
  164. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_tables.scssc +0 -0
  165. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_thumbnails.scssc +0 -0
  166. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_tooltip.scssc +0 -0
  167. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_type.scssc +0 -0
  168. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_utilities.scssc +0 -0
  169. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_variables.scssc +0 -0
  170. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/_wells.scssc +0 -0
  171. data/spec/dummy/tmp/cache/sass/c9e43dee1c22c9162e1aa6150501b7f78156a9fb/bootstrap.scssc +0 -0
  172. data/spec/dummy/tmp/cache/sass/eea23cb0c19a6988f2066af592c58a0ab56992d7/bootstrap.scssc +0 -0
  173. data/spec/dummy/tmp/cache/sass/fb305f7e737beb652711bd2f585ff1d77871c181/bootstrap.scssc +0 -0
  174. data/spec/integration/translations_spec.rb +0 -9
  175. metadata +307 -4
@@ -42466,3 +42466,2670 @@ Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.3ms)
42466
42466
  StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42467
42467
   (0.0ms) RELEASE SAVEPOINT active_record_1
42468
42468
   (0.1ms) rollback transaction
42469
+ Connecting to database specified by database.yml
42470
+  (0.3ms) begin transaction
42471
+  (0.0ms) SAVEPOINT active_record_1
42472
+ StaticBlocks::Snippet Exists (1.5ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
42473
+ SQL (1.4ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00]]
42474
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
42475
+ SQL (0.4ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00]]
42476
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42477
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42478
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."status" = 'published' AND "static_blocks_snippets"."title" = 'foo' LIMIT 1
42479
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42480
+  (0.4ms) rollback transaction
42481
+  (0.1ms) begin transaction
42482
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42483
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42484
+ Processing by StaticBlocks::SnippetsController#index as HTML
42485
+ Parameters: {"locale"=>"en"}
42486
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (7.1ms)
42487
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
42488
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42489
+ Completed 200 OK in 83ms (Views: 81.3ms | ActiveRecord: 0.3ms)
42490
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42491
+ Processing by StaticBlocks::SnippetsController#new as HTML
42492
+ Parameters: {"locale"=>"en"}
42493
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.7ms)
42494
+ Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
42495
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42496
+ Processing by StaticBlocks::SnippetsController#create as HTML
42497
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
42498
+  (0.1ms) SAVEPOINT active_record_1
42499
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
42500
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00]]
42501
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
42502
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00]]
42503
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42504
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42505
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
42506
+ Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
42507
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42508
+ Processing by StaticBlocks::SnippetsController#show as HTML
42509
+ Parameters: {"locale"=>"en", "id"=>"1"}
42510
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42511
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42512
+ Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.3ms)
42513
+ Started GET "/static_blocks/en/snippets/export.csv" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42514
+ Processing by StaticBlocks::SnippetsController#export as CSV
42515
+ Parameters: {"locale"=>"en"}
42516
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
42517
+  (0.1ms) select * from static_blocks_snippets
42518
+ Sent data static-blocks-snippets-20130718001813.csv (2.0ms)
42519
+ Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)
42520
+  (0.2ms) rollback transaction
42521
+  (0.0ms) begin transaction
42522
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42523
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42524
+ Processing by StaticBlocks::SnippetsController#index as HTML
42525
+ Parameters: {"locale"=>"en"}
42526
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
42527
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
42528
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42529
+ Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.2ms)
42530
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42531
+ Processing by StaticBlocks::SnippetsController#new as HTML
42532
+ Parameters: {"locale"=>"en"}
42533
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
42534
+ Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
42535
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42536
+ Processing by StaticBlocks::SnippetsController#create as HTML
42537
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
42538
+  (0.1ms) SAVEPOINT active_record_1
42539
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
42540
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00]]
42541
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
42542
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00]]
42543
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42545
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
42546
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
42547
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42548
+ Processing by StaticBlocks::SnippetsController#show as HTML
42549
+ Parameters: {"locale"=>"en", "id"=>"1"}
42550
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42551
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42552
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms)
42553
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42554
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42555
+ Processing by StaticBlocks::SnippetsController#index as HTML
42556
+ Parameters: {"locale"=>"en"}
42557
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.8ms)
42558
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
42559
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42560
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42561
+ Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.3ms)
42562
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42563
+ Processing by StaticBlocks::SnippetsController#index as HTML
42564
+ Parameters: {"locale"=>"wk"}
42565
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (6.1ms)
42566
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
42567
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42568
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42569
+ Completed 200 OK in 20ms (Views: 19.3ms | ActiveRecord: 0.3ms)
42570
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42571
+ Processing by StaticBlocks::SnippetsController#edit as HTML
42572
+ Parameters: {"locale"=>"wk", "id"=>"1"}
42573
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42574
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42575
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.9ms)
42576
+ Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.2ms)
42577
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42578
+ Processing by StaticBlocks::SnippetsController#update as HTML
42579
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
42580
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42581
+  (0.0ms) SAVEPOINT active_record_1
42582
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42583
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
42584
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-07-18 07:18:13.523779' WHERE "static_blocks_snippets"."id" = 1
42585
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00]]
42586
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
42587
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-07-18 07:18:13.528632' WHERE "static_blocks_snippet_translations"."id" = 2
42588
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42589
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
42590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42591
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
42592
+ Completed 302 Found in 12ms (ActiveRecord: 1.0ms)
42593
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42594
+ Processing by StaticBlocks::SnippetsController#show as HTML
42595
+ Parameters: {"locale"=>"wk", "id"=>"1"}
42596
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42597
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42598
+ Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.2ms)
42599
+ Started GET "/static_blocks/wk/snippets/export.csv" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42600
+ Processing by StaticBlocks::SnippetsController#export as CSV
42601
+ Parameters: {"locale"=>"wk"}
42602
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
42603
+  (0.1ms) select * from static_blocks_snippets
42604
+ Sent data static-blocks-snippets-20130718001813.csv (0.3ms)
42605
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
42606
+  (0.2ms) rollback transaction
42607
+  (0.0ms) begin transaction
42608
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42609
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42610
+ Processing by StaticBlocks::SnippetsController#index as HTML
42611
+ Parameters: {"locale"=>"en"}
42612
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
42613
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
42614
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42615
+ Completed 200 OK in 45ms (Views: 43.5ms | ActiveRecord: 0.2ms)
42616
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42617
+ Processing by StaticBlocks::SnippetsController#new as HTML
42618
+ Parameters: {"locale"=>"en"}
42619
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
42620
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
42621
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42622
+ Processing by StaticBlocks::SnippetsController#create as HTML
42623
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
42624
+  (0.1ms) SAVEPOINT active_record_1
42625
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
42626
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00]]
42627
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
42628
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00]]
42629
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42630
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42631
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
42632
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
42633
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42634
+ Processing by StaticBlocks::SnippetsController#show as HTML
42635
+ Parameters: {"locale"=>"en", "id"=>"1"}
42636
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42637
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42638
+ Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)
42639
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42640
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42641
+ Processing by StaticBlocks::SnippetsController#index as HTML
42642
+ Parameters: {"locale"=>"en"}
42643
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
42644
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
42645
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42646
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42647
+ Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.3ms)
42648
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42649
+ Processing by StaticBlocks::SnippetsController#index as HTML
42650
+ Parameters: {"locale"=>"wk"}
42651
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
42652
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
42653
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42654
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42655
+ Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.3ms)
42656
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42657
+ Processing by StaticBlocks::SnippetsController#edit as HTML
42658
+ Parameters: {"locale"=>"wk", "id"=>"1"}
42659
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42660
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42661
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.3ms)
42662
+ Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms)
42663
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42664
+ Processing by StaticBlocks::SnippetsController#update as HTML
42665
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
42666
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42667
+  (0.0ms) SAVEPOINT active_record_1
42668
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42669
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
42670
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-07-18 07:18:13.678845' WHERE "static_blocks_snippets"."id" = 1
42671
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00]]
42672
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
42673
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-07-18 07:18:13.682627' WHERE "static_blocks_snippet_translations"."id" = 2
42674
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42675
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
42676
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42677
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
42678
+ Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
42679
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42680
+ Processing by StaticBlocks::SnippetsController#show as HTML
42681
+ Parameters: {"locale"=>"wk", "id"=>"1"}
42682
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42683
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42684
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
42685
+ Started GET "/static_blocks/wk/snippets/export_translations.csv" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42686
+ Processing by StaticBlocks::SnippetsController#export_translations as CSV
42687
+ Parameters: {"locale"=>"wk"}
42688
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
42689
+  (0.1ms) 
42690
+ SELECT s.title, t.* FROM static_blocks_snippet_translations t
42691
+ INNER JOIN static_blocks_snippets s
42692
+ ON t.static_blocks_snippet_id = s.id
42693
+ 
42694
+ Sent data static-blocks-translations-20130718001813.csv (0.3ms)
42695
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
42696
+  (0.2ms) rollback transaction
42697
+  (0.0ms) begin transaction
42698
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42699
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42700
+ Processing by StaticBlocks::SnippetsController#index as HTML
42701
+ Parameters: {"locale"=>"en"}
42702
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (37.1ms)
42703
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
42704
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42705
+ Completed 200 OK in 45ms (Views: 44.3ms | ActiveRecord: 0.3ms)
42706
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42707
+ Processing by StaticBlocks::SnippetsController#new as HTML
42708
+ Parameters: {"locale"=>"en"}
42709
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
42710
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
42711
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42712
+ Processing by StaticBlocks::SnippetsController#create as HTML
42713
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
42714
+  (0.1ms) SAVEPOINT active_record_1
42715
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
42716
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00]]
42717
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
42718
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00]]
42719
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42721
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
42722
+ Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
42723
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42724
+ Processing by StaticBlocks::SnippetsController#show as HTML
42725
+ Parameters: {"locale"=>"en", "id"=>"1"}
42726
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42727
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42728
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
42729
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42730
+ Processing by StaticBlocks::SnippetsController#index as HTML
42731
+ Parameters: {"locale"=>"en"}
42732
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
42733
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
42734
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42735
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42736
+ Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.3ms)
42737
+ Started GET "/static_blocks/en/snippets?utf8=%E2%9C%93&q[title_cont]=&q[translations_content_cont]=english+bar&q[status_cont]=&commit=Search" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42738
+ Processing by StaticBlocks::SnippetsController#index as HTML
42739
+ Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "translations_content_cont"=>"english bar", "status_cont"=>""}, "commit"=>"Search", "locale"=>"en"}
42740
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
42741
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE ("static_blocks_snippet_translations"."content" LIKE '%english bar%')
42742
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE ("static_blocks_snippet_translations"."content" LIKE '%english bar%') ORDER BY title asc LIMIT 10 OFFSET 0
42743
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42744
+ Completed 200 OK in 21ms (Views: 16.0ms | ActiveRecord: 0.4ms)
42745
+  (0.2ms) rollback transaction
42746
+  (0.0ms) begin transaction
42747
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42748
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42749
+ Processing by StaticBlocks::SnippetsController#index as HTML
42750
+ Parameters: {"locale"=>"en"}
42751
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.8ms)
42752
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
42753
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42754
+ Completed 200 OK in 14ms (Views: 12.4ms | ActiveRecord: 0.2ms)
42755
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42756
+ Processing by StaticBlocks::SnippetsController#new as HTML
42757
+ Parameters: {"locale"=>"en"}
42758
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
42759
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
42760
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42761
+ Processing by StaticBlocks::SnippetsController#create as HTML
42762
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
42763
+  (0.1ms) SAVEPOINT active_record_1
42764
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
42765
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00]]
42766
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
42767
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:13 UTC +00:00]]
42768
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42770
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
42771
+ Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
42772
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42773
+ Processing by StaticBlocks::SnippetsController#show as HTML
42774
+ Parameters: {"locale"=>"en", "id"=>"1"}
42775
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42776
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42777
+ Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
42778
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42779
+ Processing by StaticBlocks::SnippetsController#index as HTML
42780
+ Parameters: {"locale"=>"en"}
42781
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
42782
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
42783
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42784
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42785
+ Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.4ms)
42786
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42787
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42788
+ Processing by StaticBlocks::SnippetsController#index as HTML
42789
+ Parameters: {"locale"=>"en"}
42790
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (36.0ms)
42791
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
42792
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42793
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42794
+ Completed 200 OK in 47ms (Views: 45.5ms | ActiveRecord: 0.4ms)
42795
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42796
+ Processing by StaticBlocks::SnippetsController#index as HTML
42797
+ Parameters: {"locale"=>"wk"}
42798
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.7ms)
42799
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
42800
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42801
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42802
+ Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.3ms)
42803
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-07-18 00:18:13 -0700
42804
+ Processing by StaticBlocks::SnippetsController#edit as HTML
42805
+ Parameters: {"locale"=>"wk", "id"=>"1"}
42806
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42807
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42808
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.3ms)
42809
+ Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.2ms)
42810
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42811
+ Processing by StaticBlocks::SnippetsController#update as HTML
42812
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
42813
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42814
+  (0.0ms) SAVEPOINT active_record_1
42815
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42816
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
42817
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-07-18 07:18:14.015312' WHERE "static_blocks_snippets"."id" = 1
42818
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
42819
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
42820
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-07-18 07:18:14.019081' WHERE "static_blocks_snippet_translations"."id" = 2
42821
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42822
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
42823
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42824
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
42825
+ Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
42826
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42827
+ Processing by StaticBlocks::SnippetsController#show as HTML
42828
+ Parameters: {"locale"=>"wk", "id"=>"1"}
42829
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42830
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42831
+ Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)
42832
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42833
+ Processing by StaticBlocks::SnippetsController#index as HTML
42834
+ Parameters: {"locale"=>"wk"}
42835
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.4ms)
42836
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
42837
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42838
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42839
+ Completed 200 OK in 15ms (Views: 13.9ms | ActiveRecord: 0.3ms)
42840
+ Started GET "/static_blocks/wk/snippets?utf8=%E2%9C%93&q[title_cont]=foo&q[translations_content_cont]=wookie+bar&q[status_cont]=published&commit=Search" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42841
+ Processing by StaticBlocks::SnippetsController#index as HTML
42842
+ Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"foo", "translations_content_cont"=>"wookie bar", "status_cont"=>"published"}, "commit"=>"Search", "locale"=>"wk"}
42843
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (38.5ms)
42844
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE (("static_blocks_snippets"."title" LIKE '%foo%' AND "static_blocks_snippet_translations"."content" LIKE '%wookie bar%' AND "static_blocks_snippets"."status" LIKE '%published%'))
42845
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE (("static_blocks_snippets"."title" LIKE '%foo%' AND "static_blocks_snippet_translations"."content" LIKE '%wookie bar%' AND "static_blocks_snippets"."status" LIKE '%published%')) ORDER BY title asc LIMIT 10 OFFSET 0
42846
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42847
+ Completed 200 OK in 54ms (Views: 49.1ms | ActiveRecord: 0.5ms)
42848
+  (0.2ms) rollback transaction
42849
+  (0.0ms) begin transaction
42850
+  (0.0ms) SAVEPOINT active_record_1
42851
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
42852
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
42853
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
42854
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
42855
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42857
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42858
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42859
+ Processing by StaticBlocks::SnippetsController#index as HTML
42860
+ Parameters: {"locale"=>"en"}
42861
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
42862
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
42863
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42864
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42865
+ Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.4ms)
42866
+  (0.2ms) rollback transaction
42867
+  (0.0ms) begin transaction
42868
+  (0.0ms) SAVEPOINT active_record_1
42869
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
42870
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
42871
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
42872
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
42873
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42875
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42876
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42877
+ Processing by StaticBlocks::SnippetsController#index as HTML
42878
+ Parameters: {"locale"=>"en"}
42879
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
42880
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
42881
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42882
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42883
+ Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.3ms)
42884
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42885
+ Processing by StaticBlocks::SnippetsController#new as HTML
42886
+ Parameters: {"locale"=>"en"}
42887
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
42888
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
42889
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42890
+ Processing by StaticBlocks::SnippetsController#create as HTML
42891
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"baz", "content"=>"qux", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
42892
+  (0.1ms) SAVEPOINT active_record_1
42893
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'baz' LIMIT 1
42894
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "qux"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["status", "published"], ["title", "baz"], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
42895
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 2 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
42896
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "qux"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 2], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
42897
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
42898
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42899
+ Redirected to http://www.example.com/static_blocks/en/snippets/2
42900
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
42901
+ Started GET "/static_blocks/en/snippets/2" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42902
+ Processing by StaticBlocks::SnippetsController#show as HTML
42903
+ Parameters: {"locale"=>"en", "id"=>"2"}
42904
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "2"]]
42905
+ StaticBlocks::Snippet::Translation Load (0.2ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 2
42906
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms)
42907
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
42908
+  (0.1ms) rollback transaction
42909
+  (0.0ms) begin transaction
42910
+  (0.0ms) SAVEPOINT active_record_1
42911
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
42912
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
42913
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
42914
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
42915
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42917
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42918
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42919
+ Processing by StaticBlocks::SnippetsController#index as HTML
42920
+ Parameters: {"locale"=>"en"}
42921
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (32.9ms)
42922
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
42923
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42924
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42925
+ Completed 200 OK in 43ms (Views: 42.0ms | ActiveRecord: 0.4ms)
42926
+  (0.2ms) rollback transaction
42927
+  (0.0ms) begin transaction
42928
+  (0.0ms) SAVEPOINT active_record_1
42929
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
42930
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
42931
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
42932
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
42933
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42934
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42935
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42936
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42937
+ Processing by StaticBlocks::SnippetsController#index as HTML
42938
+ Parameters: {"locale"=>"en"}
42939
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
42940
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
42941
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
42942
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42943
+ Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.3ms)
42944
+ Started GET "/static_blocks/en/snippets/1/edit" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42945
+ Processing by StaticBlocks::SnippetsController#edit as HTML
42946
+ Parameters: {"locale"=>"en", "id"=>"1"}
42947
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42948
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42949
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.4ms)
42950
+ Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.2ms)
42951
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42952
+ Processing by StaticBlocks::SnippetsController#edit as HTML
42953
+ Parameters: {"locale"=>"wk", "id"=>"1"}
42954
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42955
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42956
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.5ms)
42957
+ Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.2ms)
42958
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42959
+ Processing by StaticBlocks::SnippetsController#update as HTML
42960
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"argh", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
42961
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42962
+  (0.1ms) SAVEPOINT active_record_1
42963
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42964
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
42965
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'argh', "status" = 'published', "updated_at" = '2013-07-18 07:18:14.466371' WHERE "static_blocks_snippets"."id" = 1
42966
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
42967
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
42968
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'argh', "updated_at" = '2013-07-18 07:18:14.470224' WHERE "static_blocks_snippet_translations"."id" = 2
42969
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42970
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
42971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42972
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
42973
+ Completed 302 Found in 10ms (ActiveRecord: 1.0ms)
42974
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42975
+ Processing by StaticBlocks::SnippetsController#show as HTML
42976
+ Parameters: {"locale"=>"wk", "id"=>"1"}
42977
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42978
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42979
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
42980
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42981
+ Processing by StaticBlocks::SnippetsController#show as HTML
42982
+ Parameters: {"locale"=>"en", "id"=>"1"}
42983
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
42984
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
42985
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
42986
+  (0.2ms) rollback transaction
42987
+  (0.0ms) begin transaction
42988
+  (0.0ms) SAVEPOINT active_record_1
42989
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
42990
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
42991
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
42992
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
42993
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
42994
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42995
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42996
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
42997
+ Processing by StaticBlocks::SnippetsController#index as HTML
42998
+ Parameters: {"locale"=>"en"}
42999
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.9ms)
43000
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43001
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43002
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43003
+ Completed 200 OK in 16ms (Views: 14.6ms | ActiveRecord: 0.3ms)
43004
+ Started DELETE "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
43005
+ Processing by StaticBlocks::SnippetsController#destroy as HTML
43006
+ Parameters: {"locale"=>"en", "id"=>"1"}
43007
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43008
+  (0.0ms) SAVEPOINT active_record_1
43009
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43010
+ SQL (0.2ms) DELETE FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? [["id", 1]]
43011
+ SQL (0.1ms) DELETE FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? [["id", 1]]
43012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43013
+ Redirected to http://www.example.com/static_blocks/en/snippets
43014
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
43015
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
43016
+ Processing by StaticBlocks::SnippetsController#index as HTML
43017
+ Parameters: {"locale"=>"en"}
43018
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (7.2ms)
43019
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43020
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43021
+ Completed 200 OK in 16ms (Views: 15.1ms | ActiveRecord: 0.2ms)
43022
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
43023
+  (0.2ms) rollback transaction
43024
+  (0.0ms) begin transaction
43025
+  (0.0ms) SAVEPOINT active_record_1
43026
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43027
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
43028
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43029
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
43030
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43031
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43032
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
43033
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
43034
+ Processing by StaticBlocks::SnippetsController#index as HTML
43035
+ Parameters: {"locale"=>"en"}
43036
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
43037
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43038
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43039
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43040
+ Completed 200 OK in 16ms (Views: 14.6ms | ActiveRecord: 0.3ms)
43041
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
43042
+ Processing by StaticBlocks::SnippetsController#index as HTML
43043
+ Parameters: {"locale"=>"wk"}
43044
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
43045
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43046
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43047
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43048
+ Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.3ms)
43049
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
43050
+ Processing by StaticBlocks::SnippetsController#edit as HTML
43051
+ Parameters: {"locale"=>"wk", "id"=>"1"}
43052
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43053
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43054
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.2ms)
43055
+ Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.2ms)
43056
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
43057
+ Processing by StaticBlocks::SnippetsController#update as HTML
43058
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
43059
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43060
+  (0.0ms) SAVEPOINT active_record_1
43061
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43062
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
43063
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "status" = 'published', "updated_at" = '2013-07-18 07:18:14.693913' WHERE "static_blocks_snippets"."id" = 1
43064
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
43065
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
43066
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-07-18 07:18:14.697692' WHERE "static_blocks_snippet_translations"."id" = 2
43067
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43068
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
43069
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43070
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
43071
+ Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
43072
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
43073
+ Processing by StaticBlocks::SnippetsController#show as HTML
43074
+ Parameters: {"locale"=>"wk", "id"=>"1"}
43075
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43076
+ StaticBlocks::Snippet::Translation Load (0.2ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43077
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
43078
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
43079
+ Processing by StaticBlocks::SnippetsController#index as HTML
43080
+ Parameters: {"locale"=>"wk"}
43081
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (6.0ms)
43082
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43083
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43084
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43085
+ Completed 200 OK in 16ms (Views: 14.9ms | ActiveRecord: 0.4ms)
43086
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
43087
+ Processing by StaticBlocks::SnippetsController#index as HTML
43088
+ Parameters: {"locale"=>"en"}
43089
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
43090
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43091
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43092
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43093
+ Completed 200 OK in 16ms (Views: 14.6ms | ActiveRecord: 0.3ms)
43094
+  (0.2ms) rollback transaction
43095
+  (0.0ms) begin transaction
43096
+  (0.0ms) SAVEPOINT active_record_1
43097
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43098
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
43099
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43100
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:14 UTC +00:00]]
43101
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43103
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
43104
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
43105
+ Processing by StaticBlocks::SnippetsController#index as HTML
43106
+ Parameters: {"locale"=>"en"}
43107
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
43108
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43109
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43110
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43111
+ Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.3ms)
43112
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
43113
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-07-18 00:18:14 -0700
43114
+ Processing by StaticBlocks::SnippetsController#index as HTML
43115
+ Parameters: {"locale"=>"en"}
43116
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
43117
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43118
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43119
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43120
+ Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.3ms)
43121
+  (0.2ms) rollback transaction
43122
+  (0.0ms) begin transaction
43123
+  (0.0ms) SAVEPOINT active_record_1
43124
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43125
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:15 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:15 UTC +00:00]]
43126
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43127
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:15 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:15 UTC +00:00]]
43128
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43130
+  (0.4ms) rollback transaction
43131
+  (0.0ms) begin transaction
43132
+  (0.0ms) SAVEPOINT active_record_1
43133
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43134
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:15 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:15 UTC +00:00]]
43135
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43136
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:15 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:15 UTC +00:00]]
43137
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43139
+  (0.1ms) rollback transaction
43140
+  (0.0ms) begin transaction
43141
+  (0.0ms) SAVEPOINT active_record_1
43142
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43143
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:15 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 18 Jul 2013 07:18:15 UTC +00:00]]
43144
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43145
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 18 Jul 2013 07:18:15 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 18 Jul 2013 07:18:15 UTC +00:00]]
43146
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43147
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43148
+  (0.1ms) rollback transaction
43149
+ Connecting to database specified by database.yml
43150
+  (0.4ms) begin transaction
43151
+  (0.0ms) SAVEPOINT active_record_1
43152
+ StaticBlocks::Snippet Exists (1.5ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43153
+ SQL (2.8ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00]]
43154
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43155
+ SQL (0.4ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00]]
43156
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43158
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."status" = 'published' AND "static_blocks_snippets"."title" = 'foo' LIMIT 1
43159
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43160
+  (0.1ms) rollback transaction
43161
+  (0.0ms) begin transaction
43162
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43163
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43164
+ Processing by StaticBlocks::SnippetsController#index as HTML
43165
+ Parameters: {"locale"=>"en"}
43166
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (7.4ms)
43167
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43168
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43169
+ Completed 200 OK in 87ms (Views: 85.5ms | ActiveRecord: 0.3ms)
43170
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43171
+ Processing by StaticBlocks::SnippetsController#new as HTML
43172
+ Parameters: {"locale"=>"en"}
43173
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.8ms)
43174
+ Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)
43175
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43176
+ Processing by StaticBlocks::SnippetsController#create as HTML
43177
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
43178
+  (0.1ms) SAVEPOINT active_record_1
43179
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43180
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00]]
43181
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43182
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00]]
43183
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43185
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
43186
+ Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
43187
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43188
+ Processing by StaticBlocks::SnippetsController#show as HTML
43189
+ Parameters: {"locale"=>"en", "id"=>"1"}
43190
+ StaticBlocks::Snippet Load (0.2ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43191
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43192
+ Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.3ms)
43193
+ Started GET "/static_blocks/en/snippets/export.csv" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43194
+ Processing by StaticBlocks::SnippetsController#export as CSV
43195
+ Parameters: {"locale"=>"en"}
43196
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
43197
+  (0.1ms) select * from static_blocks_snippets
43198
+ Sent data static-blocks-snippets-20130807183323.csv (2.2ms)
43199
+ Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)
43200
+  (0.4ms) rollback transaction
43201
+  (0.1ms) begin transaction
43202
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43203
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43204
+ Processing by StaticBlocks::SnippetsController#index as HTML
43205
+ Parameters: {"locale"=>"en"}
43206
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (32.1ms)
43207
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43208
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43209
+ Completed 200 OK in 40ms (Views: 39.2ms | ActiveRecord: 0.3ms)
43210
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43211
+ Processing by StaticBlocks::SnippetsController#new as HTML
43212
+ Parameters: {"locale"=>"en"}
43213
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
43214
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
43215
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43216
+ Processing by StaticBlocks::SnippetsController#create as HTML
43217
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
43218
+  (0.1ms) SAVEPOINT active_record_1
43219
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43220
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00]]
43221
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43222
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00]]
43223
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43225
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
43226
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
43227
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43228
+ Processing by StaticBlocks::SnippetsController#show as HTML
43229
+ Parameters: {"locale"=>"en", "id"=>"1"}
43230
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43231
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43232
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
43233
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43234
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43235
+ Processing by StaticBlocks::SnippetsController#index as HTML
43236
+ Parameters: {"locale"=>"en"}
43237
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
43238
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43239
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43240
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43241
+ Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.3ms)
43242
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43243
+ Processing by StaticBlocks::SnippetsController#index as HTML
43244
+ Parameters: {"locale"=>"wk"}
43245
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (6.2ms)
43246
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43247
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43248
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43249
+ Completed 200 OK in 21ms (Views: 19.7ms | ActiveRecord: 0.3ms)
43250
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43251
+ Processing by StaticBlocks::SnippetsController#edit as HTML
43252
+ Parameters: {"locale"=>"wk", "id"=>"1"}
43253
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43254
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43255
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (4.0ms)
43256
+ Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.2ms)
43257
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43258
+ Processing by StaticBlocks::SnippetsController#update as HTML
43259
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
43260
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43261
+  (0.0ms) SAVEPOINT active_record_1
43262
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43263
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
43264
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:33:23.761493' WHERE "static_blocks_snippets"."id" = 1
43265
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00]]
43266
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
43267
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:33:23.766423' WHERE "static_blocks_snippet_translations"."id" = 2
43268
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43269
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
43270
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43271
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
43272
+ Completed 302 Found in 13ms (ActiveRecord: 1.1ms)
43273
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43274
+ Processing by StaticBlocks::SnippetsController#show as HTML
43275
+ Parameters: {"locale"=>"wk", "id"=>"1"}
43276
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43277
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43278
+ Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.2ms)
43279
+ Started GET "/static_blocks/wk/snippets/export.csv" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43280
+ Processing by StaticBlocks::SnippetsController#export as CSV
43281
+ Parameters: {"locale"=>"wk"}
43282
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
43283
+  (0.1ms) select * from static_blocks_snippets
43284
+ Sent data static-blocks-snippets-20130807183323.csv (0.3ms)
43285
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
43286
+  (0.2ms) rollback transaction
43287
+  (0.0ms) begin transaction
43288
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43289
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43290
+ Processing by StaticBlocks::SnippetsController#index as HTML
43291
+ Parameters: {"locale"=>"en"}
43292
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (6.0ms)
43293
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43294
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43295
+ Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.2ms)
43296
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43297
+ Processing by StaticBlocks::SnippetsController#new as HTML
43298
+ Parameters: {"locale"=>"en"}
43299
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
43300
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
43301
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43302
+ Processing by StaticBlocks::SnippetsController#create as HTML
43303
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
43304
+  (0.1ms) SAVEPOINT active_record_1
43305
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43306
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00]]
43307
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43308
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00]]
43309
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43310
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43311
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
43312
+ Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
43313
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43314
+ Processing by StaticBlocks::SnippetsController#show as HTML
43315
+ Parameters: {"locale"=>"en", "id"=>"1"}
43316
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43317
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43318
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms)
43319
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43320
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43321
+ Processing by StaticBlocks::SnippetsController#index as HTML
43322
+ Parameters: {"locale"=>"en"}
43323
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
43324
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43325
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43326
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43327
+ Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.3ms)
43328
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43329
+ Processing by StaticBlocks::SnippetsController#index as HTML
43330
+ Parameters: {"locale"=>"wk"}
43331
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
43332
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43333
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43334
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43335
+ Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.3ms)
43336
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43337
+ Processing by StaticBlocks::SnippetsController#edit as HTML
43338
+ Parameters: {"locale"=>"wk", "id"=>"1"}
43339
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43340
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43341
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.3ms)
43342
+ Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.2ms)
43343
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43344
+ Processing by StaticBlocks::SnippetsController#update as HTML
43345
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
43346
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43347
+  (0.0ms) SAVEPOINT active_record_1
43348
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43349
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
43350
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:33:23.919687' WHERE "static_blocks_snippets"."id" = 1
43351
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:23 UTC +00:00]]
43352
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
43353
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:33:23.923610' WHERE "static_blocks_snippet_translations"."id" = 2
43354
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43355
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
43356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43357
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
43358
+ Completed 302 Found in 11ms (ActiveRecord: 1.0ms)
43359
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43360
+ Processing by StaticBlocks::SnippetsController#show as HTML
43361
+ Parameters: {"locale"=>"wk", "id"=>"1"}
43362
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43363
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43364
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms)
43365
+ Started GET "/static_blocks/wk/snippets/export_translations.csv" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43366
+ Processing by StaticBlocks::SnippetsController#export_translations as CSV
43367
+ Parameters: {"locale"=>"wk"}
43368
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
43369
+  (0.1ms) 
43370
+ SELECT s.title, t.* FROM static_blocks_snippet_translations t
43371
+ INNER JOIN static_blocks_snippets s
43372
+ ON t.static_blocks_snippet_id = s.id
43373
+ 
43374
+ Sent data static-blocks-translations-20130807183323.csv (0.5ms)
43375
+ Completed 200 OK in 31ms (Views: 0.3ms | ActiveRecord: 0.2ms)
43376
+  (0.2ms) rollback transaction
43377
+  (0.0ms) begin transaction
43378
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43379
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43380
+ Processing by StaticBlocks::SnippetsController#index as HTML
43381
+ Parameters: {"locale"=>"en"}
43382
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (6.2ms)
43383
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43384
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43385
+ Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.2ms)
43386
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:33:23 -0700
43387
+ Processing by StaticBlocks::SnippetsController#new as HTML
43388
+ Parameters: {"locale"=>"en"}
43389
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
43390
+ Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)
43391
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43392
+ Processing by StaticBlocks::SnippetsController#create as HTML
43393
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
43394
+  (0.1ms) SAVEPOINT active_record_1
43395
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43396
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43397
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43398
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43399
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43401
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
43402
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
43403
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43404
+ Processing by StaticBlocks::SnippetsController#show as HTML
43405
+ Parameters: {"locale"=>"en", "id"=>"1"}
43406
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43407
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43408
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
43409
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43410
+ Processing by StaticBlocks::SnippetsController#index as HTML
43411
+ Parameters: {"locale"=>"en"}
43412
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.8ms)
43413
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43414
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43415
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43416
+ Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.3ms)
43417
+ Started GET "/static_blocks/en/snippets?utf8=%E2%9C%93&q[title_cont]=&q[translations_content_cont]=english+bar&q[status_cont]=&commit=Search" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43418
+ Processing by StaticBlocks::SnippetsController#index as HTML
43419
+ Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "translations_content_cont"=>"english bar", "status_cont"=>""}, "commit"=>"Search", "locale"=>"en"}
43420
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
43421
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE ("static_blocks_snippet_translations"."content" LIKE '%english bar%')
43422
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE ("static_blocks_snippet_translations"."content" LIKE '%english bar%') ORDER BY title asc LIMIT 10 OFFSET 0
43423
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43424
+ Completed 200 OK in 21ms (Views: 16.1ms | ActiveRecord: 0.4ms)
43425
+  (0.2ms) rollback transaction
43426
+  (0.0ms) begin transaction
43427
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43428
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43429
+ Processing by StaticBlocks::SnippetsController#index as HTML
43430
+ Parameters: {"locale"=>"en"}
43431
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.9ms)
43432
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43433
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43434
+ Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.2ms)
43435
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43436
+ Processing by StaticBlocks::SnippetsController#new as HTML
43437
+ Parameters: {"locale"=>"en"}
43438
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
43439
+ Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)
43440
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43441
+ Processing by StaticBlocks::SnippetsController#create as HTML
43442
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
43443
+  (0.1ms) SAVEPOINT active_record_1
43444
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43445
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43446
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43447
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43448
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43450
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
43451
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
43452
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43453
+ Processing by StaticBlocks::SnippetsController#show as HTML
43454
+ Parameters: {"locale"=>"en", "id"=>"1"}
43455
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43456
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43457
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
43458
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43459
+ Processing by StaticBlocks::SnippetsController#index as HTML
43460
+ Parameters: {"locale"=>"en"}
43461
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (34.4ms)
43462
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43463
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43464
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43465
+ Completed 200 OK in 45ms (Views: 43.5ms | ActiveRecord: 0.3ms)
43466
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43467
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43468
+ Processing by StaticBlocks::SnippetsController#index as HTML
43469
+ Parameters: {"locale"=>"en"}
43470
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.7ms)
43471
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43472
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43473
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43474
+ Completed 200 OK in 16ms (Views: 14.9ms | ActiveRecord: 0.4ms)
43475
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43476
+ Processing by StaticBlocks::SnippetsController#index as HTML
43477
+ Parameters: {"locale"=>"wk"}
43478
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
43479
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43480
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43481
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43482
+ Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.3ms)
43483
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43484
+ Processing by StaticBlocks::SnippetsController#edit as HTML
43485
+ Parameters: {"locale"=>"wk", "id"=>"1"}
43486
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43487
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43488
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.4ms)
43489
+ Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.2ms)
43490
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43491
+ Processing by StaticBlocks::SnippetsController#update as HTML
43492
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
43493
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43494
+  (0.0ms) SAVEPOINT active_record_1
43495
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43496
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
43497
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:33:24.257738' WHERE "static_blocks_snippets"."id" = 1
43498
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43499
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
43500
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:33:24.261545' WHERE "static_blocks_snippet_translations"."id" = 2
43501
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43502
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
43503
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43504
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
43505
+ Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
43506
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43507
+ Processing by StaticBlocks::SnippetsController#show as HTML
43508
+ Parameters: {"locale"=>"wk", "id"=>"1"}
43509
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43510
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43511
+ Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
43512
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43513
+ Processing by StaticBlocks::SnippetsController#index as HTML
43514
+ Parameters: {"locale"=>"wk"}
43515
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
43516
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43517
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43518
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43519
+ Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.3ms)
43520
+ Started GET "/static_blocks/wk/snippets?utf8=%E2%9C%93&q[title_cont]=foo&q[translations_content_cont]=wookie+bar&q[status_cont]=published&commit=Search" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43521
+ Processing by StaticBlocks::SnippetsController#index as HTML
43522
+ Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"foo", "translations_content_cont"=>"wookie bar", "status_cont"=>"published"}, "commit"=>"Search", "locale"=>"wk"}
43523
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.8ms)
43524
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE (("static_blocks_snippets"."title" LIKE '%foo%' AND "static_blocks_snippet_translations"."content" LIKE '%wookie bar%' AND "static_blocks_snippets"."status" LIKE '%published%'))
43525
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE (("static_blocks_snippets"."title" LIKE '%foo%' AND "static_blocks_snippet_translations"."content" LIKE '%wookie bar%' AND "static_blocks_snippets"."status" LIKE '%published%')) ORDER BY title asc LIMIT 10 OFFSET 0
43526
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43527
+ Completed 200 OK in 21ms (Views: 15.9ms | ActiveRecord: 0.4ms)
43528
+  (0.2ms) rollback transaction
43529
+  (0.0ms) begin transaction
43530
+  (0.0ms) SAVEPOINT active_record_1
43531
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43532
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43533
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
43534
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43535
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43537
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43538
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43539
+ Processing by StaticBlocks::SnippetsController#index as HTML
43540
+ Parameters: {"locale"=>"en"}
43541
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (34.8ms)
43542
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43543
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43544
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43545
+ Completed 200 OK in 45ms (Views: 44.0ms | ActiveRecord: 0.3ms)
43546
+  (0.2ms) rollback transaction
43547
+  (0.0ms) begin transaction
43548
+  (0.0ms) SAVEPOINT active_record_1
43549
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43550
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43551
+ StaticBlocks::Snippet::Translation Load (0.2ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43552
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43553
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43555
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43556
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43557
+ Processing by StaticBlocks::SnippetsController#index as HTML
43558
+ Parameters: {"locale"=>"en"}
43559
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.8ms)
43560
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43561
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43562
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43563
+ Completed 200 OK in 16ms (Views: 14.9ms | ActiveRecord: 0.3ms)
43564
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43565
+ Processing by StaticBlocks::SnippetsController#new as HTML
43566
+ Parameters: {"locale"=>"en"}
43567
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
43568
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
43569
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43570
+ Processing by StaticBlocks::SnippetsController#create as HTML
43571
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"baz", "content"=>"qux", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
43572
+  (0.1ms) SAVEPOINT active_record_1
43573
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'baz' LIMIT 1
43574
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "qux"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["status", "published"], ["title", "baz"], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43575
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 2 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43576
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "qux"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 2], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43577
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
43578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43579
+ Redirected to http://www.example.com/static_blocks/en/snippets/2
43580
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
43581
+ Started GET "/static_blocks/en/snippets/2" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43582
+ Processing by StaticBlocks::SnippetsController#show as HTML
43583
+ Parameters: {"locale"=>"en", "id"=>"2"}
43584
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "2"]]
43585
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 2
43586
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms)
43587
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
43588
+  (0.2ms) rollback transaction
43589
+  (0.0ms) begin transaction
43590
+  (0.0ms) SAVEPOINT active_record_1
43591
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43592
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43593
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43594
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43595
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43597
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43598
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43599
+ Processing by StaticBlocks::SnippetsController#index as HTML
43600
+ Parameters: {"locale"=>"en"}
43601
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.8ms)
43602
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43603
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43604
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43605
+ Completed 200 OK in 16ms (Views: 15.0ms | ActiveRecord: 0.4ms)
43606
+  (0.2ms) rollback transaction
43607
+  (0.0ms) begin transaction
43608
+  (0.0ms) SAVEPOINT active_record_1
43609
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43610
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43611
+ StaticBlocks::Snippet::Translation Load (0.2ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43612
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43613
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43614
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43615
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43616
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43617
+ Processing by StaticBlocks::SnippetsController#index as HTML
43618
+ Parameters: {"locale"=>"en"}
43619
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
43620
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43621
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43622
+ StaticBlocks::Snippet::Translation Load (0.4ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43623
+ Completed 200 OK in 46ms (Views: 44.3ms | ActiveRecord: 0.6ms)
43624
+ Started GET "/static_blocks/en/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43625
+ Processing by StaticBlocks::SnippetsController#edit as HTML
43626
+ Parameters: {"locale"=>"en", "id"=>"1"}
43627
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43628
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43629
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.7ms)
43630
+ Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.2ms)
43631
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43632
+ Processing by StaticBlocks::SnippetsController#edit as HTML
43633
+ Parameters: {"locale"=>"wk", "id"=>"1"}
43634
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43635
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43636
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.2ms)
43637
+ Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.2ms)
43638
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43639
+ Processing by StaticBlocks::SnippetsController#update as HTML
43640
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"argh", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
43641
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43642
+  (0.0ms) SAVEPOINT active_record_1
43643
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43644
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
43645
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'argh', "status" = 'published', "updated_at" = '2013-08-08 01:33:24.712740' WHERE "static_blocks_snippets"."id" = 1
43646
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43647
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
43648
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'argh', "updated_at" = '2013-08-08 01:33:24.716845' WHERE "static_blocks_snippet_translations"."id" = 2
43649
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43650
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
43651
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43652
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
43653
+ Completed 302 Found in 11ms (ActiveRecord: 1.0ms)
43654
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43655
+ Processing by StaticBlocks::SnippetsController#show as HTML
43656
+ Parameters: {"locale"=>"wk", "id"=>"1"}
43657
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43658
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43659
+ Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
43660
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43661
+ Processing by StaticBlocks::SnippetsController#show as HTML
43662
+ Parameters: {"locale"=>"en", "id"=>"1"}
43663
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43664
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43665
+ Completed 200 OK in 34ms (Views: 33.0ms | ActiveRecord: 0.2ms)
43666
+  (0.2ms) rollback transaction
43667
+  (0.0ms) begin transaction
43668
+  (0.1ms) SAVEPOINT active_record_1
43669
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43670
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43671
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43672
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43673
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43675
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43676
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43677
+ Processing by StaticBlocks::SnippetsController#index as HTML
43678
+ Parameters: {"locale"=>"en"}
43679
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.8ms)
43680
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43681
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43682
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43683
+ Completed 200 OK in 16ms (Views: 14.9ms | ActiveRecord: 0.3ms)
43684
+ Started DELETE "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43685
+ Processing by StaticBlocks::SnippetsController#destroy as HTML
43686
+ Parameters: {"locale"=>"en", "id"=>"1"}
43687
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43688
+  (0.1ms) SAVEPOINT active_record_1
43689
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43690
+ SQL (0.2ms) DELETE FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? [["id", 1]]
43691
+ SQL (0.1ms) DELETE FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? [["id", 1]]
43692
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43693
+ Redirected to http://www.example.com/static_blocks/en/snippets
43694
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
43695
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43696
+ Processing by StaticBlocks::SnippetsController#index as HTML
43697
+ Parameters: {"locale"=>"en"}
43698
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
43699
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43700
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43701
+ Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.3ms)
43702
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
43703
+  (0.2ms) rollback transaction
43704
+  (0.0ms) begin transaction
43705
+  (0.0ms) SAVEPOINT active_record_1
43706
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43707
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43708
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43709
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43710
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43711
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43712
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43713
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43714
+ Processing by StaticBlocks::SnippetsController#index as HTML
43715
+ Parameters: {"locale"=>"en"}
43716
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.7ms)
43717
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43718
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43719
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43720
+ Completed 200 OK in 16ms (Views: 14.9ms | ActiveRecord: 0.3ms)
43721
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43722
+ Processing by StaticBlocks::SnippetsController#index as HTML
43723
+ Parameters: {"locale"=>"wk"}
43724
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
43725
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43726
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43727
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43728
+ Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.3ms)
43729
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43730
+ Processing by StaticBlocks::SnippetsController#edit as HTML
43731
+ Parameters: {"locale"=>"wk", "id"=>"1"}
43732
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43733
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43734
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.3ms)
43735
+ Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.2ms)
43736
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43737
+ Processing by StaticBlocks::SnippetsController#update as HTML
43738
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
43739
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43740
+  (0.1ms) SAVEPOINT active_record_1
43741
+ StaticBlocks::Snippet::Translation Load (0.2ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43742
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
43743
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "status" = 'published', "updated_at" = '2013-08-08 01:33:24.966014' WHERE "static_blocks_snippets"."id" = 1
43744
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:24 UTC +00:00]]
43745
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
43746
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:33:24.970195' WHERE "static_blocks_snippet_translations"."id" = 2
43747
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43748
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
43749
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43750
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
43751
+ Completed 302 Found in 11ms (ActiveRecord: 1.1ms)
43752
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43753
+ Processing by StaticBlocks::SnippetsController#show as HTML
43754
+ Parameters: {"locale"=>"wk", "id"=>"1"}
43755
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43756
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43757
+ Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.2ms)
43758
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:33:24 -0700
43759
+ Processing by StaticBlocks::SnippetsController#index as HTML
43760
+ Parameters: {"locale"=>"wk"}
43761
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
43762
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43763
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43764
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43765
+ Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.4ms)
43766
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:25 -0700
43767
+ Processing by StaticBlocks::SnippetsController#index as HTML
43768
+ Parameters: {"locale"=>"en"}
43769
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (6.1ms)
43770
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43771
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43772
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43773
+ Completed 200 OK in 44ms (Views: 42.9ms | ActiveRecord: 0.4ms)
43774
+  (0.2ms) rollback transaction
43775
+  (0.0ms) begin transaction
43776
+  (0.0ms) SAVEPOINT active_record_1
43777
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43778
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00]]
43779
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43780
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00]]
43781
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43782
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43783
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:25 -0700
43784
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:25 -0700
43785
+ Processing by StaticBlocks::SnippetsController#index as HTML
43786
+ Parameters: {"locale"=>"en"}
43787
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.9ms)
43788
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43789
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43790
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43791
+ Completed 200 OK in 16ms (Views: 14.9ms | ActiveRecord: 0.4ms)
43792
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:33:25 -0700
43793
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:33:25 -0700
43794
+ Processing by StaticBlocks::SnippetsController#index as HTML
43795
+ Parameters: {"locale"=>"en"}
43796
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.7ms)
43797
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43798
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43799
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43800
+ Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.3ms)
43801
+  (0.2ms) rollback transaction
43802
+  (0.0ms) begin transaction
43803
+  (0.0ms) SAVEPOINT active_record_1
43804
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43805
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00]]
43806
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43807
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00]]
43808
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43810
+  (0.2ms) rollback transaction
43811
+  (0.2ms) begin transaction
43812
+  (0.0ms) SAVEPOINT active_record_1
43813
+ StaticBlocks::Snippet Exists (0.3ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43814
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00]]
43815
+ StaticBlocks::Snippet::Translation Load (0.2ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43816
+ SQL (0.5ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00]]
43817
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43818
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43819
+  (0.1ms) rollback transaction
43820
+  (0.0ms) begin transaction
43821
+  (0.0ms) SAVEPOINT active_record_1
43822
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43823
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00]]
43824
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43825
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:33:25 UTC +00:00]]
43826
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43827
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43828
+  (0.1ms) rollback transaction
43829
+ Connecting to database specified by database.yml
43830
+  (0.3ms) begin transaction
43831
+  (0.0ms) SAVEPOINT active_record_1
43832
+ StaticBlocks::Snippet Exists (1.4ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43833
+ SQL (1.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:50 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:50 UTC +00:00]]
43834
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43835
+ SQL (0.4ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:50 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:50 UTC +00:00]]
43836
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43837
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43838
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."status" = 'published' AND "static_blocks_snippets"."title" = 'foo' LIMIT 1
43839
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43840
+  (0.1ms) rollback transaction
43841
+  (0.0ms) begin transaction
43842
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43843
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43844
+ Processing by StaticBlocks::SnippetsController#index as HTML
43845
+ Parameters: {"locale"=>"en"}
43846
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (7.1ms)
43847
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43848
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43849
+ Completed 200 OK in 81ms (Views: 79.3ms | ActiveRecord: 0.3ms)
43850
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43851
+ Processing by StaticBlocks::SnippetsController#new as HTML
43852
+ Parameters: {"locale"=>"en"}
43853
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.7ms)
43854
+ Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
43855
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43856
+ Processing by StaticBlocks::SnippetsController#create as HTML
43857
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
43858
+  (0.1ms) SAVEPOINT active_record_1
43859
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43860
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:34:50 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:50 UTC +00:00]]
43861
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43862
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:34:50 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:50 UTC +00:00]]
43863
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43865
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
43866
+ Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
43867
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43868
+ Processing by StaticBlocks::SnippetsController#show as HTML
43869
+ Parameters: {"locale"=>"en", "id"=>"1"}
43870
+ StaticBlocks::Snippet Load (0.2ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43871
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43872
+ Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.3ms)
43873
+ Started GET "/static_blocks/en/snippets/export.csv" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43874
+ Processing by StaticBlocks::SnippetsController#export as CSV
43875
+ Parameters: {"locale"=>"en"}
43876
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
43877
+  (0.1ms) select * from static_blocks_snippets
43878
+ Sent data static-blocks-snippets-20130807183450.csv (2.0ms)
43879
+ Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)
43880
+  (0.2ms) rollback transaction
43881
+  (0.0ms) begin transaction
43882
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43883
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43884
+ Processing by StaticBlocks::SnippetsController#index as HTML
43885
+ Parameters: {"locale"=>"en"}
43886
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (31.2ms)
43887
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43888
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43889
+ Completed 200 OK in 39ms (Views: 38.2ms | ActiveRecord: 0.3ms)
43890
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43891
+ Processing by StaticBlocks::SnippetsController#new as HTML
43892
+ Parameters: {"locale"=>"en"}
43893
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.0ms)
43894
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
43895
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43896
+ Processing by StaticBlocks::SnippetsController#create as HTML
43897
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
43898
+  (0.1ms) SAVEPOINT active_record_1
43899
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43900
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:34:50 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:50 UTC +00:00]]
43901
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43902
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:34:50 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:50 UTC +00:00]]
43903
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43904
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43905
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
43906
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
43907
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43908
+ Processing by StaticBlocks::SnippetsController#show as HTML
43909
+ Parameters: {"locale"=>"en", "id"=>"1"}
43910
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43911
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43912
+ Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)
43913
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43914
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43915
+ Processing by StaticBlocks::SnippetsController#index as HTML
43916
+ Parameters: {"locale"=>"en"}
43917
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.9ms)
43918
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
43919
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43920
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43921
+ Completed 200 OK in 16ms (Views: 14.9ms | ActiveRecord: 0.3ms)
43922
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43923
+ Processing by StaticBlocks::SnippetsController#index as HTML
43924
+ Parameters: {"locale"=>"wk"}
43925
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (6.2ms)
43926
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43927
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43928
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43929
+ Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.3ms)
43930
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43931
+ Processing by StaticBlocks::SnippetsController#edit as HTML
43932
+ Parameters: {"locale"=>"wk", "id"=>"1"}
43933
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43934
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43935
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (4.0ms)
43936
+ Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.2ms)
43937
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43938
+ Processing by StaticBlocks::SnippetsController#update as HTML
43939
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
43940
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43941
+  (0.0ms) SAVEPOINT active_record_1
43942
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43943
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
43944
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:34:50.962205' WHERE "static_blocks_snippets"."id" = 1
43945
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 08 Aug 2013 01:34:50 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:50 UTC +00:00]]
43946
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
43947
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:34:50.967230' WHERE "static_blocks_snippet_translations"."id" = 2
43948
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43949
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
43950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43951
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
43952
+ Completed 302 Found in 14ms (ActiveRecord: 1.0ms)
43953
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43954
+ Processing by StaticBlocks::SnippetsController#show as HTML
43955
+ Parameters: {"locale"=>"wk", "id"=>"1"}
43956
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43957
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43958
+ Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.2ms)
43959
+ Started GET "/static_blocks/wk/snippets/export.csv" for 127.0.0.1 at 2013-08-07 18:34:50 -0700
43960
+ Processing by StaticBlocks::SnippetsController#export as CSV
43961
+ Parameters: {"locale"=>"wk"}
43962
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
43963
+  (0.1ms) select * from static_blocks_snippets
43964
+ Sent data static-blocks-snippets-20130807183450.csv (0.3ms)
43965
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
43966
+  (0.3ms) rollback transaction
43967
+  (0.1ms) begin transaction
43968
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
43969
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
43970
+ Processing by StaticBlocks::SnippetsController#index as HTML
43971
+ Parameters: {"locale"=>"en"}
43972
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (6.0ms)
43973
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
43974
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
43975
+ Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.3ms)
43976
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
43977
+ Processing by StaticBlocks::SnippetsController#new as HTML
43978
+ Parameters: {"locale"=>"en"}
43979
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
43980
+ Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)
43981
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
43982
+ Processing by StaticBlocks::SnippetsController#create as HTML
43983
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
43984
+  (0.1ms) SAVEPOINT active_record_1
43985
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
43986
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
43987
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
43988
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
43989
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
43990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
43991
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
43992
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
43993
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
43994
+ Processing by StaticBlocks::SnippetsController#show as HTML
43995
+ Parameters: {"locale"=>"en", "id"=>"1"}
43996
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
43997
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
43998
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms)
43999
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44000
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44001
+ Processing by StaticBlocks::SnippetsController#index as HTML
44002
+ Parameters: {"locale"=>"en"}
44003
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
44004
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
44005
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44006
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44007
+ Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.3ms)
44008
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44009
+ Processing by StaticBlocks::SnippetsController#index as HTML
44010
+ Parameters: {"locale"=>"wk"}
44011
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.4ms)
44012
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
44013
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44014
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44015
+ Completed 200 OK in 15ms (Views: 14.1ms | ActiveRecord: 0.3ms)
44016
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44017
+ Processing by StaticBlocks::SnippetsController#edit as HTML
44018
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44019
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44020
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44021
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.1ms)
44022
+ Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms)
44023
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44024
+ Processing by StaticBlocks::SnippetsController#update as HTML
44025
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
44026
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44027
+  (0.0ms) SAVEPOINT active_record_1
44028
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44029
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
44030
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:34:51.122508' WHERE "static_blocks_snippets"."id" = 1
44031
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44032
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
44033
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:34:51.126263' WHERE "static_blocks_snippet_translations"."id" = 2
44034
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44035
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
44036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44037
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
44038
+ Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
44039
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44040
+ Processing by StaticBlocks::SnippetsController#show as HTML
44041
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44042
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44043
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44044
+ Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
44045
+ Started GET "/static_blocks/wk/snippets/export_translations.csv" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44046
+ Processing by StaticBlocks::SnippetsController#export_translations as CSV
44047
+ Parameters: {"locale"=>"wk"}
44048
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
44049
+  (0.1ms) 
44050
+ SELECT s.title, t.* FROM static_blocks_snippet_translations t
44051
+ INNER JOIN static_blocks_snippets s
44052
+ ON t.static_blocks_snippet_id = s.id
44053
+ 
44054
+ Sent data static-blocks-translations-20130807183451.csv (0.4ms)
44055
+ Completed 200 OK in 31ms (Views: 0.3ms | ActiveRecord: 0.2ms)
44056
+  (0.2ms) rollback transaction
44057
+  (0.0ms) begin transaction
44058
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44059
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44060
+ Processing by StaticBlocks::SnippetsController#index as HTML
44061
+ Parameters: {"locale"=>"en"}
44062
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.9ms)
44063
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
44064
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44065
+ Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.2ms)
44066
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44067
+ Processing by StaticBlocks::SnippetsController#new as HTML
44068
+ Parameters: {"locale"=>"en"}
44069
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
44070
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
44071
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44072
+ Processing by StaticBlocks::SnippetsController#create as HTML
44073
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
44074
+  (0.1ms) SAVEPOINT active_record_1
44075
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44076
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44077
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44078
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44079
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44080
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44081
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
44082
+ Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
44083
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44084
+ Processing by StaticBlocks::SnippetsController#show as HTML
44085
+ Parameters: {"locale"=>"en", "id"=>"1"}
44086
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44087
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44088
+ Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)
44089
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44090
+ Processing by StaticBlocks::SnippetsController#index as HTML
44091
+ Parameters: {"locale"=>"en"}
44092
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
44093
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
44094
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44095
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44096
+ Completed 200 OK in 15ms (Views: 14.1ms | ActiveRecord: 0.3ms)
44097
+ Started GET "/static_blocks/en/snippets?utf8=%E2%9C%93&q[title_cont]=&q[translations_content_cont]=english+bar&q[status_cont]=&commit=Search" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44098
+ Processing by StaticBlocks::SnippetsController#index as HTML
44099
+ Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "translations_content_cont"=>"english bar", "status_cont"=>""}, "commit"=>"Search", "locale"=>"en"}
44100
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
44101
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE ("static_blocks_snippet_translations"."content" LIKE '%english bar%')
44102
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE ("static_blocks_snippet_translations"."content" LIKE '%english bar%') ORDER BY title asc LIMIT 10 OFFSET 0
44103
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44104
+ Completed 200 OK in 20ms (Views: 15.8ms | ActiveRecord: 0.4ms)
44105
+  (0.2ms) rollback transaction
44106
+  (0.0ms) begin transaction
44107
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44108
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44109
+ Processing by StaticBlocks::SnippetsController#index as HTML
44110
+ Parameters: {"locale"=>"en"}
44111
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.7ms)
44112
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
44113
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44114
+ Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.2ms)
44115
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44116
+ Processing by StaticBlocks::SnippetsController#new as HTML
44117
+ Parameters: {"locale"=>"en"}
44118
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.0ms)
44119
+ Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
44120
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44121
+ Processing by StaticBlocks::SnippetsController#create as HTML
44122
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
44123
+  (0.1ms) SAVEPOINT active_record_1
44124
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44125
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44126
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44127
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44128
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44130
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
44131
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
44132
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44133
+ Processing by StaticBlocks::SnippetsController#show as HTML
44134
+ Parameters: {"locale"=>"en", "id"=>"1"}
44135
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44136
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44137
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
44138
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44139
+ Processing by StaticBlocks::SnippetsController#index as HTML
44140
+ Parameters: {"locale"=>"en"}
44141
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (33.6ms)
44142
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
44143
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44144
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44145
+ Completed 200 OK in 44ms (Views: 42.5ms | ActiveRecord: 0.4ms)
44146
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44147
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44148
+ Processing by StaticBlocks::SnippetsController#index as HTML
44149
+ Parameters: {"locale"=>"en"}
44150
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
44151
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
44152
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44153
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44154
+ Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.3ms)
44155
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44156
+ Processing by StaticBlocks::SnippetsController#index as HTML
44157
+ Parameters: {"locale"=>"wk"}
44158
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.4ms)
44159
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
44160
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44161
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44162
+ Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.3ms)
44163
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44164
+ Processing by StaticBlocks::SnippetsController#edit as HTML
44165
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44166
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44167
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44168
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.2ms)
44169
+ Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms)
44170
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44171
+ Processing by StaticBlocks::SnippetsController#update as HTML
44172
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
44173
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44174
+  (0.0ms) SAVEPOINT active_record_1
44175
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44176
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
44177
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:34:51.453926' WHERE "static_blocks_snippets"."id" = 1
44178
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44179
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
44180
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:34:51.457711' WHERE "static_blocks_snippet_translations"."id" = 2
44181
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44182
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
44183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44184
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
44185
+ Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
44186
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44187
+ Processing by StaticBlocks::SnippetsController#show as HTML
44188
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44189
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44190
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44191
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
44192
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44193
+ Processing by StaticBlocks::SnippetsController#index as HTML
44194
+ Parameters: {"locale"=>"wk"}
44195
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.4ms)
44196
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
44197
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44198
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44199
+ Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.3ms)
44200
+ Started GET "/static_blocks/wk/snippets?utf8=%E2%9C%93&q[title_cont]=foo&q[translations_content_cont]=wookie+bar&q[status_cont]=published&commit=Search" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44201
+ Processing by StaticBlocks::SnippetsController#index as HTML
44202
+ Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"foo", "translations_content_cont"=>"wookie bar", "status_cont"=>"published"}, "commit"=>"Search", "locale"=>"wk"}
44203
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.9ms)
44204
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE (("static_blocks_snippets"."title" LIKE '%foo%' AND "static_blocks_snippet_translations"."content" LIKE '%wookie bar%' AND "static_blocks_snippets"."status" LIKE '%published%'))
44205
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE (("static_blocks_snippets"."title" LIKE '%foo%' AND "static_blocks_snippet_translations"."content" LIKE '%wookie bar%' AND "static_blocks_snippets"."status" LIKE '%published%')) ORDER BY title asc LIMIT 10 OFFSET 0
44206
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44207
+ Completed 200 OK in 21ms (Views: 15.7ms | ActiveRecord: 0.4ms)
44208
+  (0.2ms) rollback transaction
44209
+  (0.0ms) begin transaction
44210
+  (0.0ms) SAVEPOINT active_record_1
44211
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44212
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44213
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
44214
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44215
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44217
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44218
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44219
+ Processing by StaticBlocks::SnippetsController#index as HTML
44220
+ Parameters: {"locale"=>"en"}
44221
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (33.6ms)
44222
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
44223
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44224
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44225
+ Completed 200 OK in 44ms (Views: 42.6ms | ActiveRecord: 0.4ms)
44226
+  (0.2ms) rollback transaction
44227
+  (0.0ms) begin transaction
44228
+  (0.0ms) SAVEPOINT active_record_1
44229
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44230
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44231
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44232
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44233
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44235
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44236
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44237
+ Processing by StaticBlocks::SnippetsController#index as HTML
44238
+ Parameters: {"locale"=>"en"}
44239
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.8ms)
44240
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
44241
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44242
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44243
+ Completed 200 OK in 16ms (Views: 14.6ms | ActiveRecord: 0.3ms)
44244
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44245
+ Processing by StaticBlocks::SnippetsController#new as HTML
44246
+ Parameters: {"locale"=>"en"}
44247
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
44248
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
44249
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44250
+ Processing by StaticBlocks::SnippetsController#create as HTML
44251
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"baz", "content"=>"qux", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
44252
+  (0.1ms) SAVEPOINT active_record_1
44253
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'baz' LIMIT 1
44254
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "qux"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["status", "published"], ["title", "baz"], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44255
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 2 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44256
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "qux"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 2], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44257
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
44258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44259
+ Redirected to http://www.example.com/static_blocks/en/snippets/2
44260
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
44261
+ Started GET "/static_blocks/en/snippets/2" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44262
+ Processing by StaticBlocks::SnippetsController#show as HTML
44263
+ Parameters: {"locale"=>"en", "id"=>"2"}
44264
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "2"]]
44265
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 2
44266
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
44267
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
44268
+  (0.2ms) rollback transaction
44269
+  (0.0ms) begin transaction
44270
+  (0.0ms) SAVEPOINT active_record_1
44271
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44272
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44273
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44274
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44275
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44277
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44278
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44279
+ Processing by StaticBlocks::SnippetsController#index as HTML
44280
+ Parameters: {"locale"=>"en"}
44281
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.8ms)
44282
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
44283
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44284
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44285
+ Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.3ms)
44286
+  (0.2ms) rollback transaction
44287
+  (0.0ms) begin transaction
44288
+  (0.0ms) SAVEPOINT active_record_1
44289
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44290
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44291
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44292
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44293
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44295
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44296
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44297
+ Processing by StaticBlocks::SnippetsController#index as HTML
44298
+ Parameters: {"locale"=>"en"}
44299
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.5ms)
44300
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
44301
+ StaticBlocks::Snippet Load (0.3ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44302
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44303
+ Completed 200 OK in 44ms (Views: 42.9ms | ActiveRecord: 0.6ms)
44304
+ Started GET "/static_blocks/en/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44305
+ Processing by StaticBlocks::SnippetsController#edit as HTML
44306
+ Parameters: {"locale"=>"en", "id"=>"1"}
44307
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44308
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44309
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.4ms)
44310
+ Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.2ms)
44311
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44312
+ Processing by StaticBlocks::SnippetsController#edit as HTML
44313
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44314
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44315
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44316
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.2ms)
44317
+ Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms)
44318
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44319
+ Processing by StaticBlocks::SnippetsController#update as HTML
44320
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"argh", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
44321
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44322
+  (0.0ms) SAVEPOINT active_record_1
44323
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44324
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
44325
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'argh', "status" = 'published', "updated_at" = '2013-08-08 01:34:51.899158' WHERE "static_blocks_snippets"."id" = 1
44326
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44327
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
44328
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'argh', "updated_at" = '2013-08-08 01:34:51.903030' WHERE "static_blocks_snippet_translations"."id" = 2
44329
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44330
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
44331
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44332
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
44333
+ Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
44334
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44335
+ Processing by StaticBlocks::SnippetsController#show as HTML
44336
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44337
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44338
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44339
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
44340
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44341
+ Processing by StaticBlocks::SnippetsController#show as HTML
44342
+ Parameters: {"locale"=>"en", "id"=>"1"}
44343
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44344
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44345
+ Completed 200 OK in 33ms (Views: 31.8ms | ActiveRecord: 0.2ms)
44346
+  (0.2ms) rollback transaction
44347
+  (0.0ms) begin transaction
44348
+  (0.0ms) SAVEPOINT active_record_1
44349
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44350
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44351
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44352
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:51 UTC +00:00]]
44353
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44354
+  (0.1ms) RELEASE SAVEPOINT active_record_1
44355
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44356
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44357
+ Processing by StaticBlocks::SnippetsController#index as HTML
44358
+ Parameters: {"locale"=>"en"}
44359
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.8ms)
44360
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
44361
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44362
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44363
+ Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.3ms)
44364
+ Started DELETE "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:51 -0700
44365
+ Processing by StaticBlocks::SnippetsController#destroy as HTML
44366
+ Parameters: {"locale"=>"en", "id"=>"1"}
44367
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44368
+  (0.1ms) SAVEPOINT active_record_1
44369
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44370
+ SQL (0.2ms) DELETE FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? [["id", 1]]
44371
+ SQL (0.1ms) DELETE FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? [["id", 1]]
44372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44373
+ Redirected to http://www.example.com/static_blocks/en/snippets
44374
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
44375
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:52 -0700
44376
+ Processing by StaticBlocks::SnippetsController#index as HTML
44377
+ Parameters: {"locale"=>"en"}
44378
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.4ms)
44379
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
44380
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44381
+ Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.2ms)
44382
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
44383
+  (0.2ms) rollback transaction
44384
+  (0.0ms) begin transaction
44385
+  (0.0ms) SAVEPOINT active_record_1
44386
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44387
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00]]
44388
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44389
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00]]
44390
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
44392
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:52 -0700
44393
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:52 -0700
44394
+ Processing by StaticBlocks::SnippetsController#index as HTML
44395
+ Parameters: {"locale"=>"en"}
44396
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
44397
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
44398
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44399
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44400
+ Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.3ms)
44401
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:34:52 -0700
44402
+ Processing by StaticBlocks::SnippetsController#index as HTML
44403
+ Parameters: {"locale"=>"wk"}
44404
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.8ms)
44405
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
44406
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44407
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44408
+ Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.3ms)
44409
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:34:52 -0700
44410
+ Processing by StaticBlocks::SnippetsController#edit as HTML
44411
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44412
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44413
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44414
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.2ms)
44415
+ Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms)
44416
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:52 -0700
44417
+ Processing by StaticBlocks::SnippetsController#update as HTML
44418
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
44419
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44420
+  (0.1ms) SAVEPOINT active_record_1
44421
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44422
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
44423
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "status" = 'published', "updated_at" = '2013-08-08 01:34:52.146948' WHERE "static_blocks_snippets"."id" = 1
44424
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00]]
44425
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
44426
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:34:52.151147' WHERE "static_blocks_snippet_translations"."id" = 2
44427
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44428
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
44429
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44430
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
44431
+ Completed 302 Found in 11ms (ActiveRecord: 1.1ms)
44432
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:34:52 -0700
44433
+ Processing by StaticBlocks::SnippetsController#show as HTML
44434
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44435
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44436
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44437
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
44438
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:34:52 -0700
44439
+ Processing by StaticBlocks::SnippetsController#index as HTML
44440
+ Parameters: {"locale"=>"wk"}
44441
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.6ms)
44442
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
44443
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44444
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44445
+ Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.3ms)
44446
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:52 -0700
44447
+ Processing by StaticBlocks::SnippetsController#index as HTML
44448
+ Parameters: {"locale"=>"en"}
44449
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.7ms)
44450
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
44451
+ StaticBlocks::Snippet Load (0.2ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44452
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44453
+ Completed 200 OK in 43ms (Views: 41.2ms | ActiveRecord: 0.4ms)
44454
+  (0.2ms) rollback transaction
44455
+  (0.0ms) begin transaction
44456
+  (0.0ms) SAVEPOINT active_record_1
44457
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44458
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00]]
44459
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44460
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00]]
44461
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44462
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44463
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:52 -0700
44464
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:52 -0700
44465
+ Processing by StaticBlocks::SnippetsController#index as HTML
44466
+ Parameters: {"locale"=>"en"}
44467
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.9ms)
44468
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" 
44469
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44470
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44471
+ Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.3ms)
44472
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:34:52 -0700
44473
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:34:52 -0700
44474
+ Processing by StaticBlocks::SnippetsController#index as HTML
44475
+ Parameters: {"locale"=>"en"}
44476
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_search.html.erb (5.7ms)
44477
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets"
44478
+ StaticBlocks::Snippet Load (0.1ms) SELECT DISTINCT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44479
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44480
+ Completed 200 OK in 15ms (Views: 13.3ms | ActiveRecord: 0.4ms)
44481
+  (0.2ms) rollback transaction
44482
+  (0.0ms) begin transaction
44483
+  (0.0ms) SAVEPOINT active_record_1
44484
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44485
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00]]
44486
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44487
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00]]
44488
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44490
+  (0.2ms) rollback transaction
44491
+  (0.0ms) begin transaction
44492
+  (0.0ms) SAVEPOINT active_record_1
44493
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44494
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00]]
44495
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44496
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00]]
44497
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44498
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44499
+  (0.1ms) rollback transaction
44500
+  (0.0ms) begin transaction
44501
+  (0.0ms) SAVEPOINT active_record_1
44502
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44503
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00]]
44504
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44505
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:34:52 UTC +00:00]]
44506
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44507
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44508
+  (0.1ms) rollback transaction
44509
+ Connecting to database specified by database.yml
44510
+  (0.3ms) begin transaction
44511
+  (0.0ms) SAVEPOINT active_record_1
44512
+ StaticBlocks::Snippet Exists (1.5ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44513
+ SQL (1.4ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00]]
44514
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44515
+ SQL (0.4ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00]]
44516
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44518
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."status" = 'published' AND "static_blocks_snippets"."title" = 'foo' LIMIT 1
44519
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44520
+  (0.3ms) rollback transaction
44521
+  (0.0ms) begin transaction
44522
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44523
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44524
+ Processing by StaticBlocks::SnippetsController#index as HTML
44525
+ Parameters: {"locale"=>"en"}
44526
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
44527
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44528
+ Completed 200 OK in 59ms (Views: 57.1ms | ActiveRecord: 0.3ms)
44529
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44530
+ Processing by StaticBlocks::SnippetsController#new as HTML
44531
+ Parameters: {"locale"=>"en"}
44532
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (28.6ms)
44533
+ Completed 200 OK in 33ms (Views: 32.5ms | ActiveRecord: 0.0ms)
44534
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44535
+ Processing by StaticBlocks::SnippetsController#create as HTML
44536
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
44537
+  (0.1ms) SAVEPOINT active_record_1
44538
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44539
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00]]
44540
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44541
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00]]
44542
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44543
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44544
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
44545
+ Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
44546
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44547
+ Processing by StaticBlocks::SnippetsController#show as HTML
44548
+ Parameters: {"locale"=>"en", "id"=>"1"}
44549
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44550
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44551
+ Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.3ms)
44552
+ Started GET "/static_blocks/en/snippets/export.csv" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44553
+ Processing by StaticBlocks::SnippetsController#export as CSV
44554
+ Parameters: {"locale"=>"en"}
44555
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
44556
+  (0.1ms) select * from static_blocks_snippets
44557
+ Sent data static-blocks-snippets-20130807183915.csv (2.1ms)
44558
+ Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)
44559
+  (0.2ms) rollback transaction
44560
+  (0.0ms) begin transaction
44561
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44562
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44563
+ Processing by StaticBlocks::SnippetsController#index as HTML
44564
+ Parameters: {"locale"=>"en"}
44565
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
44566
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44567
+ Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.2ms)
44568
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44569
+ Processing by StaticBlocks::SnippetsController#new as HTML
44570
+ Parameters: {"locale"=>"en"}
44571
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
44572
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
44573
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44574
+ Processing by StaticBlocks::SnippetsController#create as HTML
44575
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
44576
+  (0.1ms) SAVEPOINT active_record_1
44577
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44578
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00]]
44579
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44580
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00]]
44581
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44583
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
44584
+ Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
44585
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44586
+ Processing by StaticBlocks::SnippetsController#show as HTML
44587
+ Parameters: {"locale"=>"en", "id"=>"1"}
44588
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44589
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44590
+ Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
44591
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44592
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44593
+ Processing by StaticBlocks::SnippetsController#index as HTML
44594
+ Parameters: {"locale"=>"en"}
44595
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
44596
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44597
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44598
+ Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.3ms)
44599
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44600
+ Processing by StaticBlocks::SnippetsController#index as HTML
44601
+ Parameters: {"locale"=>"wk"}
44602
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
44603
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44604
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44605
+ Completed 200 OK in 20ms (Views: 18.7ms | ActiveRecord: 0.3ms)
44606
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44607
+ Processing by StaticBlocks::SnippetsController#edit as HTML
44608
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44609
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44610
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44611
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (4.1ms)
44612
+ Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.2ms)
44613
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44614
+ Processing by StaticBlocks::SnippetsController#update as HTML
44615
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
44616
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44617
+  (0.1ms) SAVEPOINT active_record_1
44618
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44619
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
44620
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:39:15.797931' WHERE "static_blocks_snippets"."id" = 1
44621
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00]]
44622
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
44623
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:39:15.802800' WHERE "static_blocks_snippet_translations"."id" = 2
44624
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44625
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
44626
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44627
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
44628
+ Completed 302 Found in 12ms (ActiveRecord: 1.0ms)
44629
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44630
+ Processing by StaticBlocks::SnippetsController#show as HTML
44631
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44632
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44633
+ StaticBlocks::Snippet::Translation Load (0.2ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44634
+ Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.2ms)
44635
+ Started GET "/static_blocks/wk/snippets/export.csv" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44636
+ Processing by StaticBlocks::SnippetsController#export as CSV
44637
+ Parameters: {"locale"=>"wk"}
44638
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
44639
+  (0.1ms) select * from static_blocks_snippets
44640
+ Sent data static-blocks-snippets-20130807183915.csv (0.3ms)
44641
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
44642
+  (0.2ms) rollback transaction
44643
+  (0.0ms) begin transaction
44644
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44645
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44646
+ Processing by StaticBlocks::SnippetsController#index as HTML
44647
+ Parameters: {"locale"=>"en"}
44648
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
44649
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44650
+ Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.2ms)
44651
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44652
+ Processing by StaticBlocks::SnippetsController#new as HTML
44653
+ Parameters: {"locale"=>"en"}
44654
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
44655
+ Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)
44656
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44657
+ Processing by StaticBlocks::SnippetsController#create as HTML
44658
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
44659
+  (0.1ms) SAVEPOINT active_record_1
44660
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44661
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00]]
44662
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44663
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00]]
44664
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44666
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
44667
+ Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
44668
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44669
+ Processing by StaticBlocks::SnippetsController#show as HTML
44670
+ Parameters: {"locale"=>"en", "id"=>"1"}
44671
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44672
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44673
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
44674
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44675
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44676
+ Processing by StaticBlocks::SnippetsController#index as HTML
44677
+ Parameters: {"locale"=>"en"}
44678
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
44679
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44680
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44681
+ Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.3ms)
44682
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44683
+ Processing by StaticBlocks::SnippetsController#index as HTML
44684
+ Parameters: {"locale"=>"wk"}
44685
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
44686
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44687
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44688
+ Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.3ms)
44689
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44690
+ Processing by StaticBlocks::SnippetsController#edit as HTML
44691
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44692
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44693
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44694
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.4ms)
44695
+ Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.2ms)
44696
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44697
+ Processing by StaticBlocks::SnippetsController#update as HTML
44698
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
44699
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44700
+  (2.2ms) SAVEPOINT active_record_1
44701
+ StaticBlocks::Snippet::Translation Load (0.2ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44702
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
44703
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:39:15.990369' WHERE "static_blocks_snippets"."id" = 1
44704
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:15 UTC +00:00]]
44705
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
44706
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:39:15.994560' WHERE "static_blocks_snippet_translations"."id" = 2
44707
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44708
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
44709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44710
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
44711
+ Completed 302 Found in 14ms (ActiveRecord: 3.2ms)
44712
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:15 -0700
44713
+ Processing by StaticBlocks::SnippetsController#show as HTML
44714
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44715
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44716
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44717
+ Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
44718
+ Started GET "/static_blocks/wk/snippets/export_translations.csv" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44719
+ Processing by StaticBlocks::SnippetsController#export_translations as CSV
44720
+ Parameters: {"locale"=>"wk"}
44721
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
44722
+  (0.1ms) 
44723
+ SELECT s.title, t.* FROM static_blocks_snippet_translations t
44724
+ INNER JOIN static_blocks_snippets s
44725
+ ON t.static_blocks_snippet_id = s.id
44726
+ 
44727
+ Sent data static-blocks-translations-20130807183916.csv (0.3ms)
44728
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
44729
+  (0.2ms) rollback transaction
44730
+  (0.0ms) begin transaction
44731
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44732
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44733
+ Processing by StaticBlocks::SnippetsController#index as HTML
44734
+ Parameters: {"locale"=>"en"}
44735
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
44736
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44737
+ Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.2ms)
44738
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44739
+ Processing by StaticBlocks::SnippetsController#new as HTML
44740
+ Parameters: {"locale"=>"en"}
44741
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
44742
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
44743
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44744
+ Processing by StaticBlocks::SnippetsController#create as HTML
44745
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
44746
+  (0.1ms) SAVEPOINT active_record_1
44747
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44748
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44749
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44750
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44751
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44752
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44753
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
44754
+ Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
44755
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44756
+ Processing by StaticBlocks::SnippetsController#show as HTML
44757
+ Parameters: {"locale"=>"en", "id"=>"1"}
44758
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44759
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44760
+ Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
44761
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44762
+ Processing by StaticBlocks::SnippetsController#index as HTML
44763
+ Parameters: {"locale"=>"en"}
44764
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
44765
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44766
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44767
+ Completed 200 OK in 15ms (Views: 14.1ms | ActiveRecord: 0.3ms)
44768
+ Started GET "/static_blocks/en/snippets?utf8=%E2%9C%93&q[title_cont]=&q[translations_content_cont]=english+bar&q[status_cont]=&commit=Search" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44769
+ Processing by StaticBlocks::SnippetsController#index as HTML
44770
+ Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "translations_content_cont"=>"english bar", "status_cont"=>""}, "commit"=>"Search", "locale"=>"en"}
44771
+  (0.2ms) SELECT COUNT(DISTINCT "static_blocks_snippets"."id") FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE ("static_blocks_snippet_translations"."content" LIKE '%english bar%')
44772
+ StaticBlocks::Snippet Load (0.2ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE ("static_blocks_snippet_translations"."content" LIKE '%english bar%') ORDER BY title asc LIMIT 10 OFFSET 0
44773
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44774
+ Completed 200 OK in 52ms (Views: 47.4ms | ActiveRecord: 0.4ms)
44775
+  (0.2ms) rollback transaction
44776
+  (0.0ms) begin transaction
44777
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44778
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44779
+ Processing by StaticBlocks::SnippetsController#index as HTML
44780
+ Parameters: {"locale"=>"en"}
44781
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
44782
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44783
+ Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.2ms)
44784
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44785
+ Processing by StaticBlocks::SnippetsController#new as HTML
44786
+ Parameters: {"locale"=>"en"}
44787
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
44788
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
44789
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44790
+ Processing by StaticBlocks::SnippetsController#create as HTML
44791
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
44792
+  (0.1ms) SAVEPOINT active_record_1
44793
+ StaticBlocks::Snippet Exists (0.2ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44794
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44795
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44796
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44797
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44798
+  (0.1ms) RELEASE SAVEPOINT active_record_1
44799
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
44800
+ Completed 302 Found in 37ms (ActiveRecord: 1.1ms)
44801
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44802
+ Processing by StaticBlocks::SnippetsController#show as HTML
44803
+ Parameters: {"locale"=>"en", "id"=>"1"}
44804
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44805
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44806
+ Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
44807
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44808
+ Processing by StaticBlocks::SnippetsController#index as HTML
44809
+ Parameters: {"locale"=>"en"}
44810
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
44811
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44812
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44813
+ Completed 200 OK in 16ms (Views: 14.6ms | ActiveRecord: 0.3ms)
44814
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44815
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44816
+ Processing by StaticBlocks::SnippetsController#index as HTML
44817
+ Parameters: {"locale"=>"en"}
44818
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
44819
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44820
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44821
+ Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.3ms)
44822
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44823
+ Processing by StaticBlocks::SnippetsController#index as HTML
44824
+ Parameters: {"locale"=>"wk"}
44825
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
44826
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44827
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44828
+ Completed 200 OK in 15ms (Views: 14.1ms | ActiveRecord: 0.3ms)
44829
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44830
+ Processing by StaticBlocks::SnippetsController#edit as HTML
44831
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44832
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44833
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44834
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.3ms)
44835
+ Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.2ms)
44836
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44837
+ Processing by StaticBlocks::SnippetsController#update as HTML
44838
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
44839
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44840
+  (0.0ms) SAVEPOINT active_record_1
44841
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44842
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
44843
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:39:16.296564' WHERE "static_blocks_snippets"."id" = 1
44844
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44845
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
44846
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:39:16.300497' WHERE "static_blocks_snippet_translations"."id" = 2
44847
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44848
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
44849
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44850
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
44851
+ Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
44852
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44853
+ Processing by StaticBlocks::SnippetsController#show as HTML
44854
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44855
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44856
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44857
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
44858
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44859
+ Processing by StaticBlocks::SnippetsController#index as HTML
44860
+ Parameters: {"locale"=>"wk"}
44861
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
44862
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44863
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44864
+ Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.3ms)
44865
+ Started GET "/static_blocks/wk/snippets?utf8=%E2%9C%93&q[title_cont]=foo&q[translations_content_cont]=wookie+bar&q[status_cont]=published&commit=Search" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44866
+ Processing by StaticBlocks::SnippetsController#index as HTML
44867
+ Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"foo", "translations_content_cont"=>"wookie bar", "status_cont"=>"published"}, "commit"=>"Search", "locale"=>"wk"}
44868
+  (0.2ms) SELECT COUNT(DISTINCT "static_blocks_snippets"."id") FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE (("static_blocks_snippets"."title" LIKE '%foo%' AND "static_blocks_snippet_translations"."content" LIKE '%wookie bar%' AND "static_blocks_snippets"."status" LIKE '%published%'))
44869
+ StaticBlocks::Snippet Load (0.2ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" LEFT OUTER JOIN "static_blocks_snippet_translations" ON "static_blocks_snippet_translations"."static_blocks_snippet_id" = "static_blocks_snippets"."id" WHERE (("static_blocks_snippets"."title" LIKE '%foo%' AND "static_blocks_snippet_translations"."content" LIKE '%wookie bar%' AND "static_blocks_snippets"."status" LIKE '%published%')) ORDER BY title asc LIMIT 10 OFFSET 0
44870
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44871
+ Completed 200 OK in 21ms (Views: 16.1ms | ActiveRecord: 0.4ms)
44872
+  (0.2ms) rollback transaction
44873
+  (0.0ms) begin transaction
44874
+  (0.0ms) SAVEPOINT active_record_1
44875
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44876
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44877
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
44878
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44879
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44881
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44882
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44883
+ Processing by StaticBlocks::SnippetsController#index as HTML
44884
+ Parameters: {"locale"=>"en"}
44885
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
44886
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44887
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44888
+ Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.3ms)
44889
+  (0.2ms) rollback transaction
44890
+  (0.0ms) begin transaction
44891
+  (0.0ms) SAVEPOINT active_record_1
44892
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44893
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44894
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44895
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44896
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44897
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44898
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44899
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44900
+ Processing by StaticBlocks::SnippetsController#index as HTML
44901
+ Parameters: {"locale"=>"en"}
44902
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
44903
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44904
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44905
+ Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.3ms)
44906
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44907
+ Processing by StaticBlocks::SnippetsController#new as HTML
44908
+ Parameters: {"locale"=>"en"}
44909
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.0ms)
44910
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
44911
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44912
+ Processing by StaticBlocks::SnippetsController#create as HTML
44913
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"baz", "content"=>"qux", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
44914
+  (0.1ms) SAVEPOINT active_record_1
44915
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'baz' LIMIT 1
44916
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "qux"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["status", "published"], ["title", "baz"], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44917
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 2 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44918
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "qux"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 2], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44919
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
44920
+  (0.1ms) RELEASE SAVEPOINT active_record_1
44921
+ Redirected to http://www.example.com/static_blocks/en/snippets/2
44922
+ Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
44923
+ Started GET "/static_blocks/en/snippets/2" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44924
+ Processing by StaticBlocks::SnippetsController#show as HTML
44925
+ Parameters: {"locale"=>"en", "id"=>"2"}
44926
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "2"]]
44927
+ StaticBlocks::Snippet::Translation Load (0.2ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 2
44928
+ Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms)
44929
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
44930
+  (0.2ms) rollback transaction
44931
+  (0.0ms) begin transaction
44932
+  (0.0ms) SAVEPOINT active_record_1
44933
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44934
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44935
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44936
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44937
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44938
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44939
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44940
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44941
+ Processing by StaticBlocks::SnippetsController#index as HTML
44942
+ Parameters: {"locale"=>"en"}
44943
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
44944
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44945
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44946
+ Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.3ms)
44947
+  (0.2ms) rollback transaction
44948
+  (0.0ms) begin transaction
44949
+  (0.0ms) SAVEPOINT active_record_1
44950
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
44951
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44952
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
44953
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44954
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44955
+  (0.1ms) RELEASE SAVEPOINT active_record_1
44956
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44957
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44958
+ Processing by StaticBlocks::SnippetsController#index as HTML
44959
+ Parameters: {"locale"=>"en"}
44960
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
44961
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
44962
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44963
+ Completed 200 OK in 45ms (Views: 43.5ms | ActiveRecord: 0.3ms)
44964
+ Started GET "/static_blocks/en/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44965
+ Processing by StaticBlocks::SnippetsController#edit as HTML
44966
+ Parameters: {"locale"=>"en", "id"=>"1"}
44967
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44968
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44969
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.5ms)
44970
+ Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.2ms)
44971
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44972
+ Processing by StaticBlocks::SnippetsController#edit as HTML
44973
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44974
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44975
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44976
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.2ms)
44977
+ Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms)
44978
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44979
+ Processing by StaticBlocks::SnippetsController#update as HTML
44980
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"argh", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
44981
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44982
+  (0.0ms) SAVEPOINT active_record_1
44983
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44984
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
44985
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'argh', "status" = 'published', "updated_at" = '2013-08-08 01:39:16.753806' WHERE "static_blocks_snippets"."id" = 1
44986
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
44987
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
44988
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'argh', "updated_at" = '2013-08-08 01:39:16.757693' WHERE "static_blocks_snippet_translations"."id" = 2
44989
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
44990
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
44991
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44992
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
44993
+ Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
44994
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
44995
+ Processing by StaticBlocks::SnippetsController#show as HTML
44996
+ Parameters: {"locale"=>"wk", "id"=>"1"}
44997
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
44998
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
44999
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.2ms)
45000
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
45001
+ Processing by StaticBlocks::SnippetsController#show as HTML
45002
+ Parameters: {"locale"=>"en", "id"=>"1"}
45003
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
45004
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
45005
+ Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.2ms)
45006
+  (0.2ms) rollback transaction
45007
+  (0.0ms) begin transaction
45008
+  (0.0ms) SAVEPOINT active_record_1
45009
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
45010
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
45011
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
45012
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
45013
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
45014
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45015
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
45016
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
45017
+ Processing by StaticBlocks::SnippetsController#index as HTML
45018
+ Parameters: {"locale"=>"en"}
45019
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
45020
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
45021
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
45022
+ Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.3ms)
45023
+ Started DELETE "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
45024
+ Processing by StaticBlocks::SnippetsController#destroy as HTML
45025
+ Parameters: {"locale"=>"en", "id"=>"1"}
45026
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
45027
+  (0.0ms) SAVEPOINT active_record_1
45028
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
45029
+ SQL (0.2ms) DELETE FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? [["id", 1]]
45030
+ SQL (0.1ms) DELETE FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? [["id", 1]]
45031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45032
+ Redirected to http://www.example.com/static_blocks/en/snippets
45033
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
45034
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
45035
+ Processing by StaticBlocks::SnippetsController#index as HTML
45036
+ Parameters: {"locale"=>"en"}
45037
+  (0.2ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
45038
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
45039
+ Completed 200 OK in 43ms (Views: 41.8ms | ActiveRecord: 0.3ms)
45040
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
45041
+  (0.2ms) rollback transaction
45042
+  (0.0ms) begin transaction
45043
+  (0.0ms) SAVEPOINT active_record_1
45044
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
45045
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
45046
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
45047
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:16 UTC +00:00]]
45048
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
45049
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45050
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
45051
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
45052
+ Processing by StaticBlocks::SnippetsController#index as HTML
45053
+ Parameters: {"locale"=>"en"}
45054
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
45055
+ StaticBlocks::Snippet Load (0.2ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
45056
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
45057
+ Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.3ms)
45058
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
45059
+ Processing by StaticBlocks::SnippetsController#index as HTML
45060
+ Parameters: {"locale"=>"wk"}
45061
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
45062
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
45063
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
45064
+ Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.3ms)
45065
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-08-07 18:39:16 -0700
45066
+ Processing by StaticBlocks::SnippetsController#edit as HTML
45067
+ Parameters: {"locale"=>"wk", "id"=>"1"}
45068
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
45069
+ StaticBlocks::Snippet::Translation Load (1.7ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
45070
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (5.4ms)
45071
+ Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 1.8ms)
45072
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:17 -0700
45073
+ Processing by StaticBlocks::SnippetsController#update as HTML
45074
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
45075
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
45076
+  (0.1ms) SAVEPOINT active_record_1
45077
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
45078
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
45079
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "status" = 'published', "updated_at" = '2013-08-08 01:39:17.013495' WHERE "static_blocks_snippets"."id" = 1
45080
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Thu, 08 Aug 2013 01:39:17 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:17 UTC +00:00]]
45081
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'wk' LIMIT 1
45082
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-08-08 01:39:17.017703' WHERE "static_blocks_snippet_translations"."id" = 2
45083
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
45084
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
45085
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45086
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
45087
+ Completed 302 Found in 11ms (ActiveRecord: 1.0ms)
45088
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-08-07 18:39:17 -0700
45089
+ Processing by StaticBlocks::SnippetsController#show as HTML
45090
+ Parameters: {"locale"=>"wk", "id"=>"1"}
45091
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
45092
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
45093
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms)
45094
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-08-07 18:39:17 -0700
45095
+ Processing by StaticBlocks::SnippetsController#index as HTML
45096
+ Parameters: {"locale"=>"wk"}
45097
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
45098
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
45099
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
45100
+ Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.4ms)
45101
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-08-07 18:39:17 -0700
45102
+ Processing by StaticBlocks::SnippetsController#index as HTML
45103
+ Parameters: {"locale"=>"en"}
45104
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
45105
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
45106
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
45107
+ Completed 200 OK in 43ms (Views: 42.1ms | ActiveRecord: 0.3ms)
45108
+  (0.2ms) rollback transaction
45109
+  (0.0ms) begin transaction
45110
+  (0.0ms) SAVEPOINT active_record_1
45111
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
45112
+ SQL (0.4ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:17 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:39:17 UTC +00:00]]
45113
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
45114
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:17 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:17 UTC +00:00]]
45115
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
45116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45117
+  (0.2ms) rollback transaction
45118
+  (0.0ms) begin transaction
45119
+  (0.0ms) SAVEPOINT active_record_1
45120
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
45121
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:17 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:39:17 UTC +00:00]]
45122
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
45123
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:17 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:17 UTC +00:00]]
45124
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
45125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45126
+  (0.1ms) rollback transaction
45127
+  (0.0ms) begin transaction
45128
+  (0.0ms) SAVEPOINT active_record_1
45129
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
45130
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:17 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Thu, 08 Aug 2013 01:39:17 UTC +00:00]]
45131
+ StaticBlocks::Snippet::Translation Load (0.1ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1 AND "static_blocks_snippet_translations"."locale" = 'en' LIMIT 1
45132
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Thu, 08 Aug 2013 01:39:17 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Thu, 08 Aug 2013 01:39:17 UTC +00:00]]
45133
+ StaticBlocks::Snippet::Translation Load (0.0ms) SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
45134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45135
+  (0.1ms) rollback transaction