static_blocks 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -33204,3 +33204,630 @@ Completed 200 OK in 15ms (Views: 14.1ms | ActiveRecord: 0.3ms)
33204
33204
  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]]
33205
33205
   (0.0ms) RELEASE SAVEPOINT active_record_1
33206
33206
   (0.1ms) rollback transaction
33207
+ Connecting to database specified by database.yml
33208
+  (0.4ms) begin transaction
33209
+  (0.0ms) SAVEPOINT active_record_1
33210
+ StaticBlocks::Snippet Exists (3.3ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
33211
+ SQL (3.0ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00]]
33212
+ StaticBlocks::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
33213
+ SQL (0.3ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00]]
33214
+ 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]]
33215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33216
+ 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
33217
+ StaticBlocks::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
33218
+  (0.1ms) rollback transaction
33219
+  (0.0ms) begin transaction
33220
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33221
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33222
+ Processing by StaticBlocks::SnippetsController#index as HTML
33223
+ Parameters: {"locale"=>"en"}
33224
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
33225
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33226
+ Completed 200 OK in 78ms (Views: 76.3ms | ActiveRecord: 0.3ms)
33227
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33228
+ Processing by StaticBlocks::SnippetsController#new as HTML
33229
+ Parameters: {"locale"=>"en"}
33230
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.7ms)
33231
+ Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
33232
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33233
+ Processing by StaticBlocks::SnippetsController#create as HTML
33234
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
33235
+  (0.1ms) SAVEPOINT active_record_1
33236
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
33237
+ SQL (0.2ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00]]
33238
+ StaticBlocks::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
33239
+ 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", Sat, 29 Jun 2013 02:22:50 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00]]
33240
+ 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]]
33241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33242
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
33243
+ Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
33244
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33245
+ Processing by StaticBlocks::SnippetsController#show as HTML
33246
+ Parameters: {"locale"=>"en", "id"=>"1"}
33247
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33248
+ StaticBlocks::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
33249
+ Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms)
33250
+ Started GET "/static_blocks/en/snippets/export.csv" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33251
+ Processing by StaticBlocks::SnippetsController#export as CSV
33252
+ Parameters: {"locale"=>"en"}
33253
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
33254
+  (0.1ms) select * from static_blocks_snippets
33255
+ Sent data static-blocks-snippets-20130628192250.csv (2.2ms)
33256
+ Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.1ms)
33257
+  (0.1ms) rollback transaction
33258
+  (0.0ms) begin transaction
33259
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33260
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33261
+ Processing by StaticBlocks::SnippetsController#index as HTML
33262
+ Parameters: {"locale"=>"en"}
33263
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
33264
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33265
+ Completed 200 OK in 13ms (Views: 11.8ms | ActiveRecord: 0.2ms)
33266
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33267
+ Processing by StaticBlocks::SnippetsController#new as HTML
33268
+ Parameters: {"locale"=>"en"}
33269
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.0ms)
33270
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
33271
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33272
+ Processing by StaticBlocks::SnippetsController#create as HTML
33273
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
33274
+  (0.1ms) SAVEPOINT active_record_1
33275
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
33276
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00]]
33277
+ StaticBlocks::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
33278
+ 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", Sat, 29 Jun 2013 02:22:50 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00]]
33279
+ 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]]
33280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33281
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
33282
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
33283
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33284
+ Processing by StaticBlocks::SnippetsController#show as HTML
33285
+ Parameters: {"locale"=>"en", "id"=>"1"}
33286
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33287
+ StaticBlocks::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
33288
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
33289
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33290
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33291
+ Processing by StaticBlocks::SnippetsController#index as HTML
33292
+ Parameters: {"locale"=>"en"}
33293
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
33294
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33295
+ StaticBlocks::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
33296
+ Completed 200 OK in 41ms (Views: 39.7ms | ActiveRecord: 0.3ms)
33297
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33298
+ Processing by StaticBlocks::SnippetsController#index as HTML
33299
+ Parameters: {"locale"=>"wk"}
33300
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
33301
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33302
+ StaticBlocks::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
33303
+ Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.3ms)
33304
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33305
+ Processing by StaticBlocks::SnippetsController#edit as HTML
33306
+ Parameters: {"locale"=>"wk", "id"=>"1"}
33307
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33308
+ StaticBlocks::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
33309
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.8ms)
33310
+ Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.2ms)
33311
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33312
+ Processing by StaticBlocks::SnippetsController#update as HTML
33313
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
33314
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33315
+  (0.0ms) SAVEPOINT active_record_1
33316
+ StaticBlocks::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
33317
+ 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
33318
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-06-29 02:22:50.516966' WHERE "static_blocks_snippets"."id" = 1
33319
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00]]
33320
+ StaticBlocks::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
33321
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-06-29 02:22:50.521427' WHERE "static_blocks_snippet_translations"."id" = 2
33322
+ 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]]
33323
+ 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]]
33324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33325
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
33326
+ Completed 302 Found in 12ms (ActiveRecord: 1.0ms)
33327
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33328
+ Processing by StaticBlocks::SnippetsController#show as HTML
33329
+ Parameters: {"locale"=>"wk", "id"=>"1"}
33330
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33331
+ StaticBlocks::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
33332
+ Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.2ms)
33333
+ Started GET "/static_blocks/wk/snippets/export.csv" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33334
+ Processing by StaticBlocks::SnippetsController#export as CSV
33335
+ Parameters: {"locale"=>"wk"}
33336
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
33337
+  (0.1ms) select * from static_blocks_snippets
33338
+ Sent data static-blocks-snippets-20130628192250.csv (0.3ms)
33339
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
33340
+  (0.2ms) rollback transaction
33341
+  (0.0ms) begin transaction
33342
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33343
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33344
+ Processing by StaticBlocks::SnippetsController#index as HTML
33345
+ Parameters: {"locale"=>"en"}
33346
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
33347
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33348
+ Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.2ms)
33349
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33350
+ Processing by StaticBlocks::SnippetsController#new as HTML
33351
+ Parameters: {"locale"=>"en"}
33352
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.0ms)
33353
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
33354
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33355
+ Processing by StaticBlocks::SnippetsController#create as HTML
33356
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
33357
+  (0.1ms) SAVEPOINT active_record_1
33358
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
33359
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00]]
33360
+ StaticBlocks::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
33361
+ 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", Sat, 29 Jun 2013 02:22:50 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00]]
33362
+ 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]]
33363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33364
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
33365
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
33366
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33367
+ Processing by StaticBlocks::SnippetsController#show as HTML
33368
+ Parameters: {"locale"=>"en", "id"=>"1"}
33369
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33370
+ StaticBlocks::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
33371
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
33372
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33373
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33374
+ Processing by StaticBlocks::SnippetsController#index as HTML
33375
+ Parameters: {"locale"=>"en"}
33376
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
33377
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33378
+ StaticBlocks::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
33379
+ Completed 200 OK in 44ms (Views: 43.3ms | ActiveRecord: 0.3ms)
33380
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33381
+ Processing by StaticBlocks::SnippetsController#index as HTML
33382
+ Parameters: {"locale"=>"wk"}
33383
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
33384
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33385
+ StaticBlocks::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
33386
+ Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 0.3ms)
33387
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33388
+ Processing by StaticBlocks::SnippetsController#edit as HTML
33389
+ Parameters: {"locale"=>"wk", "id"=>"1"}
33390
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33391
+ StaticBlocks::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
33392
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.1ms)
33393
+ Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms)
33394
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33395
+ Processing by StaticBlocks::SnippetsController#update as HTML
33396
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
33397
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33398
+  (0.0ms) SAVEPOINT active_record_1
33399
+ StaticBlocks::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
33400
+ 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
33401
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-06-29 02:22:50.664033' WHERE "static_blocks_snippets"."id" = 1
33402
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00]]
33403
+ StaticBlocks::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
33404
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-06-29 02:22:50.667490' WHERE "static_blocks_snippet_translations"."id" = 2
33405
+ 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]]
33406
+ 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]]
33407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33408
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
33409
+ Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
33410
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33411
+ Processing by StaticBlocks::SnippetsController#show as HTML
33412
+ Parameters: {"locale"=>"wk", "id"=>"1"}
33413
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33414
+ StaticBlocks::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
33415
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
33416
+ Started GET "/static_blocks/wk/snippets/export_translations.csv" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33417
+ Processing by StaticBlocks::SnippetsController#export_translations as CSV
33418
+ Parameters: {"locale"=>"wk"}
33419
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
33420
+  (0.1ms) 
33421
+ SELECT s.title, t.* FROM static_blocks_snippet_translations t
33422
+ INNER JOIN static_blocks_snippets s
33423
+ ON t.static_blocks_snippet_id = s.id
33424
+ 
33425
+ Sent data static-blocks-translations-20130628192250.csv (0.3ms)
33426
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
33427
+  (0.1ms) rollback transaction
33428
+  (0.0ms) begin transaction
33429
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33430
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33431
+ Processing by StaticBlocks::SnippetsController#index as HTML
33432
+ Parameters: {"locale"=>"en"}
33433
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
33434
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33435
+ Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.2ms)
33436
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33437
+ Processing by StaticBlocks::SnippetsController#new as HTML
33438
+ Parameters: {"locale"=>"en"}
33439
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.0ms)
33440
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
33441
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33442
+ Processing by StaticBlocks::SnippetsController#create as HTML
33443
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
33444
+  (0.1ms) SAVEPOINT active_record_1
33445
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
33446
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00]]
33447
+ StaticBlocks::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
33448
+ 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", Sat, 29 Jun 2013 02:22:50 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00]]
33449
+ 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]]
33450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33451
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
33452
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
33453
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33454
+ Processing by StaticBlocks::SnippetsController#show as HTML
33455
+ Parameters: {"locale"=>"en", "id"=>"1"}
33456
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33457
+ StaticBlocks::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
33458
+ Completed 200 OK in 35ms (Views: 33.7ms | ActiveRecord: 0.2ms)
33459
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33460
+ Processing by StaticBlocks::SnippetsController#index as HTML
33461
+ Parameters: {"locale"=>"en"}
33462
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
33463
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33464
+ StaticBlocks::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
33465
+ Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.3ms)
33466
+ 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-06-28 19:22:50 -0700
33467
+ Processing by StaticBlocks::SnippetsController#index as HTML
33468
+ Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "translations_content_cont"=>"english bar", "status_cont"=>""}, "commit"=>"Search", "locale"=>"en"}
33469
+  (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%')
33470
+ StaticBlocks::Snippet Load (0.1ms) 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
33471
+ StaticBlocks::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
33472
+ Completed 200 OK in 20ms (Views: 15.1ms | ActiveRecord: 0.4ms)
33473
+  (0.2ms) rollback transaction
33474
+  (0.0ms) begin transaction
33475
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33476
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33477
+ Processing by StaticBlocks::SnippetsController#index as HTML
33478
+ Parameters: {"locale"=>"en"}
33479
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
33480
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33481
+ Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.2ms)
33482
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33483
+ Processing by StaticBlocks::SnippetsController#new as HTML
33484
+ Parameters: {"locale"=>"en"}
33485
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.0ms)
33486
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
33487
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33488
+ Processing by StaticBlocks::SnippetsController#create as HTML
33489
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
33490
+  (0.1ms) SAVEPOINT active_record_1
33491
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
33492
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00]]
33493
+ StaticBlocks::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
33494
+ 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", Sat, 29 Jun 2013 02:22:50 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00]]
33495
+ 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]]
33496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33497
+ Redirected to http://www.example.com/static_blocks/en/snippets/1
33498
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
33499
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33500
+ Processing by StaticBlocks::SnippetsController#show as HTML
33501
+ Parameters: {"locale"=>"en", "id"=>"1"}
33502
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33503
+ StaticBlocks::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
33504
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
33505
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33506
+ Processing by StaticBlocks::SnippetsController#index as HTML
33507
+ Parameters: {"locale"=>"en"}
33508
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
33509
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33510
+ StaticBlocks::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
33511
+ Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.3ms)
33512
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33513
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33514
+ Processing by StaticBlocks::SnippetsController#index as HTML
33515
+ Parameters: {"locale"=>"en"}
33516
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
33517
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33518
+ StaticBlocks::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
33519
+ Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.3ms)
33520
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33521
+ Processing by StaticBlocks::SnippetsController#index as HTML
33522
+ Parameters: {"locale"=>"wk"}
33523
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
33524
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33525
+ StaticBlocks::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
33526
+ Completed 200 OK in 44ms (Views: 42.6ms | ActiveRecord: 0.3ms)
33527
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33528
+ Processing by StaticBlocks::SnippetsController#edit as HTML
33529
+ Parameters: {"locale"=>"wk", "id"=>"1"}
33530
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33531
+ StaticBlocks::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
33532
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.2ms)
33533
+ Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms)
33534
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33535
+ Processing by StaticBlocks::SnippetsController#update as HTML
33536
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
33537
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33538
+  (0.0ms) SAVEPOINT active_record_1
33539
+ StaticBlocks::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
33540
+ 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
33541
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-06-29 02:22:50.977725' WHERE "static_blocks_snippets"."id" = 1
33542
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:50 UTC +00:00]]
33543
+ StaticBlocks::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
33544
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-06-29 02:22:50.981212' WHERE "static_blocks_snippet_translations"."id" = 2
33545
+ 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]]
33546
+ 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", 2]]
33547
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33548
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
33549
+ Completed 302 Found in 18ms (ActiveRecord: 1.0ms)
33550
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:50 -0700
33551
+ Processing by StaticBlocks::SnippetsController#show as HTML
33552
+ Parameters: {"locale"=>"wk", "id"=>"1"}
33553
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33554
+ StaticBlocks::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
33555
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
33556
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33557
+ Processing by StaticBlocks::SnippetsController#index as HTML
33558
+ Parameters: {"locale"=>"wk"}
33559
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
33560
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33561
+ StaticBlocks::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
33562
+ Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.3ms)
33563
+ 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-06-28 19:22:51 -0700
33564
+ Processing by StaticBlocks::SnippetsController#index as HTML
33565
+ Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"foo", "translations_content_cont"=>"wookie bar", "status_cont"=>"published"}, "commit"=>"Search", "locale"=>"wk"}
33566
+  (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%'))
33567
+ 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
33568
+ StaticBlocks::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
33569
+ Completed 200 OK in 19ms (Views: 14.6ms | ActiveRecord: 0.4ms)
33570
+  (0.2ms) rollback transaction
33571
+  (0.0ms) begin transaction
33572
+  (0.0ms) SAVEPOINT active_record_1
33573
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
33574
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33575
+ StaticBlocks::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
33576
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33577
+ 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]]
33578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33579
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33580
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33581
+ Processing by StaticBlocks::SnippetsController#index as HTML
33582
+ Parameters: {"locale"=>"en"}
33583
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
33584
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33585
+ StaticBlocks::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
33586
+ Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 0.3ms)
33587
+  (0.2ms) rollback transaction
33588
+  (0.0ms) begin transaction
33589
+  (0.0ms) SAVEPOINT active_record_1
33590
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
33591
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33592
+ StaticBlocks::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
33593
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33594
+ 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]]
33595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33596
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33597
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33598
+ Processing by StaticBlocks::SnippetsController#index as HTML
33599
+ Parameters: {"locale"=>"en"}
33600
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
33601
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33602
+ StaticBlocks::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
33603
+ Completed 200 OK in 41ms (Views: 39.5ms | ActiveRecord: 0.3ms)
33604
+ Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33605
+ Processing by StaticBlocks::SnippetsController#new as HTML
33606
+ Parameters: {"locale"=>"en"}
33607
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.0ms)
33608
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
33609
+ Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33610
+ Processing by StaticBlocks::SnippetsController#create as HTML
33611
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"baz", "content"=>"qux", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
33612
+  (0.1ms) SAVEPOINT active_record_1
33613
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'baz' LIMIT 1
33614
+ SQL (0.2ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "qux"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["status", "published"], ["title", "baz"], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33615
+ StaticBlocks::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
33616
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "qux"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 2], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33617
+ 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]]
33618
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33619
+ Redirected to http://www.example.com/static_blocks/en/snippets/2
33620
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
33621
+ Started GET "/static_blocks/en/snippets/2" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33622
+ Processing by StaticBlocks::SnippetsController#show as HTML
33623
+ Parameters: {"locale"=>"en", "id"=>"2"}
33624
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "2"]]
33625
+ StaticBlocks::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
33626
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
33627
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
33628
+  (0.1ms) rollback transaction
33629
+  (0.0ms) begin transaction
33630
+  (0.0ms) SAVEPOINT active_record_1
33631
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
33632
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33633
+ StaticBlocks::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
33634
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33635
+ 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]]
33636
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33637
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33638
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33639
+ Processing by StaticBlocks::SnippetsController#index as HTML
33640
+ Parameters: {"locale"=>"en"}
33641
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
33642
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33643
+ StaticBlocks::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
33644
+ Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.3ms)
33645
+  (0.2ms) rollback transaction
33646
+  (0.0ms) begin transaction
33647
+  (0.0ms) SAVEPOINT active_record_1
33648
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
33649
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33650
+ StaticBlocks::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
33651
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33652
+ 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]]
33653
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33654
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33655
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33656
+ Processing by StaticBlocks::SnippetsController#index as HTML
33657
+ Parameters: {"locale"=>"en"}
33658
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
33659
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33660
+ StaticBlocks::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
33661
+ Completed 200 OK in 14ms (Views: 13.4ms | ActiveRecord: 0.3ms)
33662
+ Started GET "/static_blocks/en/snippets/1/edit" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33663
+ Processing by StaticBlocks::SnippetsController#edit as HTML
33664
+ Parameters: {"locale"=>"en", "id"=>"1"}
33665
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33666
+ StaticBlocks::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
33667
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.4ms)
33668
+ Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.2ms)
33669
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33670
+ Processing by StaticBlocks::SnippetsController#edit as HTML
33671
+ Parameters: {"locale"=>"wk", "id"=>"1"}
33672
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33673
+ StaticBlocks::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
33674
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.0ms)
33675
+ Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms)
33676
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33677
+ Processing by StaticBlocks::SnippetsController#update as HTML
33678
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"argh", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
33679
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33680
+  (0.0ms) SAVEPOINT active_record_1
33681
+ StaticBlocks::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
33682
+ 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
33683
+  (0.1ms) UPDATE "static_blocks_snippets" SET "content" = 'argh', "status" = 'published', "updated_at" = '2013-06-29 02:22:51.379270' WHERE "static_blocks_snippets"."id" = 1
33684
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33685
+ StaticBlocks::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
33686
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'argh', "updated_at" = '2013-06-29 02:22:51.382733' WHERE "static_blocks_snippet_translations"."id" = 2
33687
+ 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]]
33688
+ 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]]
33689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33690
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
33691
+ Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
33692
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33693
+ Processing by StaticBlocks::SnippetsController#show as HTML
33694
+ Parameters: {"locale"=>"wk", "id"=>"1"}
33695
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33696
+ StaticBlocks::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
33697
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
33698
+ Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33699
+ Processing by StaticBlocks::SnippetsController#show as HTML
33700
+ Parameters: {"locale"=>"en", "id"=>"1"}
33701
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33702
+ StaticBlocks::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
33703
+ Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)
33704
+  (0.2ms) rollback transaction
33705
+  (0.0ms) begin transaction
33706
+  (0.0ms) SAVEPOINT active_record_1
33707
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
33708
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33709
+ StaticBlocks::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
33710
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33711
+ 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]]
33712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33713
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33714
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33715
+ Processing by StaticBlocks::SnippetsController#index as HTML
33716
+ Parameters: {"locale"=>"en"}
33717
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
33718
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33719
+ StaticBlocks::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
33720
+ Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.3ms)
33721
+ Started DELETE "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33722
+ Processing by StaticBlocks::SnippetsController#destroy as HTML
33723
+ Parameters: {"locale"=>"en", "id"=>"1"}
33724
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33725
+  (0.0ms) SAVEPOINT active_record_1
33726
+ StaticBlocks::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
33727
+ SQL (0.2ms) DELETE FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? [["id", 1]]
33728
+ SQL (0.1ms) DELETE FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? [["id", 1]]
33729
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33730
+ Redirected to http://www.example.com/static_blocks/en/snippets
33731
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
33732
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33733
+ Processing by StaticBlocks::SnippetsController#index as HTML
33734
+ Parameters: {"locale"=>"en"}
33735
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
33736
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33737
+ Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.2ms)
33738
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
33739
+  (0.1ms) rollback transaction
33740
+  (0.0ms) begin transaction
33741
+  (0.0ms) SAVEPOINT active_record_1
33742
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
33743
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33744
+ StaticBlocks::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
33745
+ 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", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33746
+ 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]]
33747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33748
+ Started GET "/static_blocks" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33749
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33750
+ Processing by StaticBlocks::SnippetsController#index as HTML
33751
+ Parameters: {"locale"=>"en"}
33752
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
33753
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33754
+ StaticBlocks::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
33755
+ Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.3ms)
33756
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33757
+ Processing by StaticBlocks::SnippetsController#index as HTML
33758
+ Parameters: {"locale"=>"wk"}
33759
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
33760
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33761
+ StaticBlocks::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
33762
+ Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 0.3ms)
33763
+ Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33764
+ Processing by StaticBlocks::SnippetsController#edit as HTML
33765
+ Parameters: {"locale"=>"wk", "id"=>"1"}
33766
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33767
+ StaticBlocks::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
33768
+ Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.0ms)
33769
+ Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms)
33770
+ Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33771
+ Processing by StaticBlocks::SnippetsController#update as HTML
33772
+ Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
33773
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33774
+  (0.0ms) SAVEPOINT active_record_1
33775
+ StaticBlocks::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
33776
+ 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
33777
+  (0.2ms) UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "status" = 'published', "updated_at" = '2013-06-29 02:22:51.610808' WHERE "static_blocks_snippets"."id" = 1
33778
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33779
+ StaticBlocks::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
33780
+  (0.1ms) UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-06-29 02:22:51.614266' WHERE "static_blocks_snippet_translations"."id" = 2
33781
+ 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]]
33782
+ 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]]
33783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33784
+ Redirected to http://www.example.com/static_blocks/wk/snippets/1
33785
+ Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
33786
+ Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33787
+ Processing by StaticBlocks::SnippetsController#show as HTML
33788
+ Parameters: {"locale"=>"wk", "id"=>"1"}
33789
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
33790
+ StaticBlocks::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
33791
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
33792
+ Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33793
+ Processing by StaticBlocks::SnippetsController#index as HTML
33794
+ Parameters: {"locale"=>"wk"}
33795
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets"
33796
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33797
+ StaticBlocks::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
33798
+ Completed 200 OK in 44ms (Views: 42.7ms | ActiveRecord: 0.3ms)
33799
+ Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-28 19:22:51 -0700
33800
+ Processing by StaticBlocks::SnippetsController#index as HTML
33801
+ Parameters: {"locale"=>"en"}
33802
+  (0.1ms) SELECT COUNT(*) FROM "static_blocks_snippets" 
33803
+ StaticBlocks::Snippet Load (0.1ms) SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
33804
+ StaticBlocks::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
33805
+ Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.3ms)
33806
+  (0.2ms) rollback transaction
33807
+  (0.0ms) begin transaction
33808
+  (0.0ms) SAVEPOINT active_record_1
33809
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
33810
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33811
+ StaticBlocks::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
33812
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33813
+ 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]]
33814
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33815
+  (0.2ms) rollback transaction
33816
+  (0.0ms) begin transaction
33817
+  (0.0ms) SAVEPOINT active_record_1
33818
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
33819
+ SQL (0.3ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33820
+ StaticBlocks::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
33821
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33822
+ 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]]
33823
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33824
+  (0.1ms) rollback transaction
33825
+  (0.0ms) begin transaction
33826
+  (0.0ms) SAVEPOINT active_record_1
33827
+ StaticBlocks::Snippet Exists (0.1ms) SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
33828
+ SQL (0.2ms) INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33829
+ StaticBlocks::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
33830
+ SQL (0.2ms) INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Sat, 29 Jun 2013 02:22:51 UTC +00:00]]
33831
+ 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]]
33832
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33833
+  (0.1ms) rollback transaction