static_blocks 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/db/migrate/{20130611042319_create_static_blocks_static_blocks.rb → 20130611042319_create_static_blocks_snippets.rb} +0 -0
- data/db/migrate/{20130612034816_create_static_block_translations.rb → 20130612034816_create_snippet_translations.rb} +0 -0
- data/lib/generators/install_generator.rb +1 -1
- data/lib/static_blocks/version.rb +1 -1
- data/lib/templates/static_blocks_config_template.rb +1 -0
- data/spec/dummy/log/development.log +2 -0
- data/spec/dummy/log/test.log +620 -0
- metadata +3 -3
File without changes
|
File without changes
|
@@ -7,7 +7,7 @@ module StaticBlocks
|
|
7
7
|
source_root File.expand_path("../../templates", __FILE__)
|
8
8
|
|
9
9
|
def copy_static_blocks_config
|
10
|
-
copy_file "static_blocks_config_template.rb", "config/initializers/
|
10
|
+
copy_file "static_blocks_config_template.rb", "config/initializers/static_blocks.rb"
|
11
11
|
end
|
12
12
|
|
13
13
|
def copy_migrations
|
@@ -157566,3 +157566,5 @@ Served asset /bootstrap-wysihtml5/index.js - 304 Not Modified (0ms)
|
|
157566
157566
|
|
157567
157567
|
Started GET "/assets/static_blocks/application.js?body=1" for 127.0.0.1 at 2013-06-27 18:10:15 -0700
|
157568
157568
|
Served asset /static_blocks/application.js - 304 Not Modified (0ms)
|
157569
|
+
Connecting to database specified by database.yml
|
157570
|
+
Connecting to database specified by database.yml
|
data/spec/dummy/log/test.log
CHANGED
@@ -28149,3 +28149,623 @@ Completed 200 OK in 16ms (Views: 14.9ms | ActiveRecord: 0.4ms)
|
|
28149
28149
|
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
|
28150
28150
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28151
28151
|
[1m[35m (0.1ms)[0m rollback transaction
|
28152
|
+
Connecting to database specified by database.yml
|
28153
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
28154
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
28155
|
+
[1m[36mStaticBlocks::Snippet Exists (1.7ms)[0m [1mSELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1[0m
|
28156
|
+
[1m[35mSQL (2.7ms)[0m INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00]]
|
28157
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "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[0m
|
28158
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00]]
|
28159
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1[0m [["id", 1]]
|
28160
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
28161
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."status" = 'published' AND "static_blocks_snippets"."title" = 'foo' LIMIT 1[0m
|
28162
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28163
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
28164
|
+
[1m[35m (0.0ms)[0m begin transaction
|
28165
|
+
Started GET "/static_blocks" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28166
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28167
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28168
|
+
Parameters: {"locale"=>"en"}
|
28169
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "static_blocks_snippets" [0m
|
28170
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
|
28171
|
+
Completed 200 OK in 93ms (Views: 91.0ms | ActiveRecord: 0.3ms)
|
28172
|
+
Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28173
|
+
Processing by StaticBlocks::SnippetsController#new as HTML
|
28174
|
+
Parameters: {"locale"=>"en"}
|
28175
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.7ms)
|
28176
|
+
Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
|
28177
|
+
Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28178
|
+
Processing by StaticBlocks::SnippetsController#create as HTML
|
28179
|
+
Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
|
28180
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
28181
|
+
[1m[35mStaticBlocks::Snippet Exists (0.1ms)[0m SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
|
28182
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "english bar"], ["created_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00]]
|
28183
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m 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
|
28184
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "english bar"], ["created_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00]]
|
28185
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
|
28186
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28187
|
+
Redirected to http://www.example.com/static_blocks/en/snippets/1
|
28188
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
|
28189
|
+
Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28190
|
+
Processing by StaticBlocks::SnippetsController#show as HTML
|
28191
|
+
Parameters: {"locale"=>"en", "id"=>"1"}
|
28192
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
|
28193
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28194
|
+
Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.2ms)
|
28195
|
+
Started GET "/static_blocks/en/snippets/export.csv" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28196
|
+
Processing by StaticBlocks::SnippetsController#export as CSV
|
28197
|
+
Parameters: {"locale"=>"en"}
|
28198
|
+
[1m[35m (0.1ms)[0m select * from static_blocks_snippets
|
28199
|
+
Sent data static-blocks-20130627212008.csv (26.2ms)
|
28200
|
+
Completed 200 OK in 27ms (Views: 26.2ms | ActiveRecord: 0.1ms)
|
28201
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
28202
|
+
[1m[35m (0.0ms)[0m begin transaction
|
28203
|
+
Started GET "/static_blocks" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28204
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28205
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28206
|
+
Parameters: {"locale"=>"en"}
|
28207
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "static_blocks_snippets" [0m
|
28208
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
|
28209
|
+
Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.2ms)
|
28210
|
+
Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28211
|
+
Processing by StaticBlocks::SnippetsController#new as HTML
|
28212
|
+
Parameters: {"locale"=>"en"}
|
28213
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (1.9ms)
|
28214
|
+
Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
|
28215
|
+
Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28216
|
+
Processing by StaticBlocks::SnippetsController#create as HTML
|
28217
|
+
Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
|
28218
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
28219
|
+
[1m[35mStaticBlocks::Snippet Exists (0.1ms)[0m SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
|
28220
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "english bar"], ["created_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00]]
|
28221
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m 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
|
28222
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "english bar"], ["created_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00]]
|
28223
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
|
28224
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28225
|
+
Redirected to http://www.example.com/static_blocks/en/snippets/1
|
28226
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
|
28227
|
+
Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28228
|
+
Processing by StaticBlocks::SnippetsController#show as HTML
|
28229
|
+
Parameters: {"locale"=>"en", "id"=>"1"}
|
28230
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
|
28231
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28232
|
+
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)
|
28233
|
+
Started GET "/static_blocks" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28234
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28235
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28236
|
+
Parameters: {"locale"=>"en"}
|
28237
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
28238
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
28239
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28240
|
+
Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.3ms)
|
28241
|
+
Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28242
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28243
|
+
Parameters: {"locale"=>"wk"}
|
28244
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "static_blocks_snippets" [0m
|
28245
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
|
28246
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28247
|
+
Completed 200 OK in 46ms (Views: 44.6ms | ActiveRecord: 0.3ms)
|
28248
|
+
Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28249
|
+
Processing by StaticBlocks::SnippetsController#edit as HTML
|
28250
|
+
Parameters: {"locale"=>"wk", "id"=>"1"}
|
28251
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
|
28252
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28253
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.7ms)
|
28254
|
+
Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.2ms)
|
28255
|
+
Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28256
|
+
Processing by StaticBlocks::SnippetsController#update as HTML
|
28257
|
+
Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
|
28258
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
|
28259
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
28260
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28261
|
+
[1m[36mStaticBlocks::Snippet Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1[0m
|
28262
|
+
[1m[35m (0.2ms)[0m UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-06-28 04:20:08.498179' WHERE "static_blocks_snippets"."id" = 1
|
28263
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", nil], ["created_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00]]
|
28264
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m 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
|
28265
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-06-28 04:20:08.502756' WHERE "static_blocks_snippet_translations"."id" = 2[0m
|
28266
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
|
28267
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.0ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1[0m [["id", 2]]
|
28268
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
28269
|
+
Redirected to http://www.example.com/static_blocks/wk/snippets/1
|
28270
|
+
Completed 302 Found in 12ms (ActiveRecord: 1.0ms)
|
28271
|
+
Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28272
|
+
Processing by StaticBlocks::SnippetsController#show as HTML
|
28273
|
+
Parameters: {"locale"=>"wk", "id"=>"1"}
|
28274
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1[0m [["id", "1"]]
|
28275
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28276
|
+
Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.2ms)
|
28277
|
+
Started GET "/static_blocks/wk/snippets/export.csv" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28278
|
+
Processing by StaticBlocks::SnippetsController#export as CSV
|
28279
|
+
Parameters: {"locale"=>"wk"}
|
28280
|
+
[1m[36m (0.1ms)[0m [1mselect * from static_blocks_snippets[0m
|
28281
|
+
Sent data static-blocks-20130627212008.csv (0.3ms)
|
28282
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
28283
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
28284
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
28285
|
+
Started GET "/static_blocks" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28286
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28287
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28288
|
+
Parameters: {"locale"=>"en"}
|
28289
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
28290
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
28291
|
+
Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.2ms)
|
28292
|
+
Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28293
|
+
Processing by StaticBlocks::SnippetsController#new as HTML
|
28294
|
+
Parameters: {"locale"=>"en"}
|
28295
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.0ms)
|
28296
|
+
Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
|
28297
|
+
Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28298
|
+
Processing by StaticBlocks::SnippetsController#create as HTML
|
28299
|
+
Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
|
28300
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
28301
|
+
[1m[36mStaticBlocks::Snippet Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1[0m
|
28302
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00]]
|
28303
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "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[0m
|
28304
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00]]
|
28305
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.0ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1[0m [["id", 1]]
|
28306
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
28307
|
+
Redirected to http://www.example.com/static_blocks/en/snippets/1
|
28308
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
|
28309
|
+
Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28310
|
+
Processing by StaticBlocks::SnippetsController#show as HTML
|
28311
|
+
Parameters: {"locale"=>"en", "id"=>"1"}
|
28312
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1[0m [["id", "1"]]
|
28313
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28314
|
+
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms)
|
28315
|
+
Started GET "/static_blocks" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28316
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28317
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28318
|
+
Parameters: {"locale"=>"en"}
|
28319
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "static_blocks_snippets" [0m
|
28320
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
|
28321
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28322
|
+
Completed 200 OK in 45ms (Views: 43.7ms | ActiveRecord: 0.3ms)
|
28323
|
+
Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28324
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28325
|
+
Parameters: {"locale"=>"wk"}
|
28326
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
28327
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
28328
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28329
|
+
Completed 200 OK in 15ms (Views: 13.9ms | ActiveRecord: 0.3ms)
|
28330
|
+
Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28331
|
+
Processing by StaticBlocks::SnippetsController#edit as HTML
|
28332
|
+
Parameters: {"locale"=>"wk", "id"=>"1"}
|
28333
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1[0m [["id", "1"]]
|
28334
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28335
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.1ms)
|
28336
|
+
Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms)
|
28337
|
+
Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28338
|
+
Processing by StaticBlocks::SnippetsController#update as HTML
|
28339
|
+
Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
|
28340
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1[0m [["id", "1"]]
|
28341
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
28342
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28343
|
+
[1m[35mStaticBlocks::Snippet Exists (0.1ms)[0m SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
|
28344
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-06-28 04:20:08.646620' WHERE "static_blocks_snippets"."id" = 1[0m
|
28345
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00]]
|
28346
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "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[0m
|
28347
|
+
[1m[35m (0.1ms)[0m UPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-06-28 04:20:08.650208' WHERE "static_blocks_snippet_translations"."id" = 2
|
28348
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.0ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1[0m [["id", 1]]
|
28349
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
|
28350
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28351
|
+
Redirected to http://www.example.com/static_blocks/wk/snippets/1
|
28352
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
|
28353
|
+
Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28354
|
+
Processing by StaticBlocks::SnippetsController#show as HTML
|
28355
|
+
Parameters: {"locale"=>"wk", "id"=>"1"}
|
28356
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
|
28357
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28358
|
+
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
|
28359
|
+
Started GET "/static_blocks/wk/snippets/export_translations.csv" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28360
|
+
Processing by StaticBlocks::SnippetsController#export_translations as CSV
|
28361
|
+
Parameters: {"locale"=>"wk"}
|
28362
|
+
[1m[35m (0.1ms)[0m select * from static_blocks_snippet_translations
|
28363
|
+
Sent data static-blocks-translations-20130627212008.csv (0.3ms)
|
28364
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
28365
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
28366
|
+
[1m[35m (0.0ms)[0m begin transaction
|
28367
|
+
Started GET "/static_blocks" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28368
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28369
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28370
|
+
Parameters: {"locale"=>"en"}
|
28371
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "static_blocks_snippets" [0m
|
28372
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
|
28373
|
+
Completed 200 OK in 13ms (Views: 11.6ms | ActiveRecord: 0.3ms)
|
28374
|
+
Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28375
|
+
Processing by StaticBlocks::SnippetsController#new as HTML
|
28376
|
+
Parameters: {"locale"=>"en"}
|
28377
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.0ms)
|
28378
|
+
Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
|
28379
|
+
Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28380
|
+
Processing by StaticBlocks::SnippetsController#create as HTML
|
28381
|
+
Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
|
28382
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
28383
|
+
[1m[35mStaticBlocks::Snippet Exists (0.1ms)[0m SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
|
28384
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "english bar"], ["created_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00]]
|
28385
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m 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
|
28386
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "english bar"], ["created_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00]]
|
28387
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
|
28388
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28389
|
+
Redirected to http://www.example.com/static_blocks/en/snippets/1
|
28390
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
|
28391
|
+
Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28392
|
+
Processing by StaticBlocks::SnippetsController#show as HTML
|
28393
|
+
Parameters: {"locale"=>"en", "id"=>"1"}
|
28394
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
|
28395
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28396
|
+
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
|
28397
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28398
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28399
|
+
Parameters: {"locale"=>"en"}
|
28400
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
28401
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
28402
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28403
|
+
Completed 200 OK in 44ms (Views: 43.1ms | ActiveRecord: 0.3ms)
|
28404
|
+
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-27 21:20:08 -0700
|
28405
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28406
|
+
Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "translations_content_cont"=>"english bar", "status_cont"=>""}, "commit"=>"Search", "locale"=>"en"}
|
28407
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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%')[0m
|
28408
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m 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
|
28409
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28410
|
+
Completed 200 OK in 20ms (Views: 15.5ms | ActiveRecord: 0.4ms)
|
28411
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
28412
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
28413
|
+
Started GET "/static_blocks" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28414
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28415
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28416
|
+
Parameters: {"locale"=>"en"}
|
28417
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
28418
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
28419
|
+
Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.2ms)
|
28420
|
+
Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28421
|
+
Processing by StaticBlocks::SnippetsController#new as HTML
|
28422
|
+
Parameters: {"locale"=>"en"}
|
28423
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.0ms)
|
28424
|
+
Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
|
28425
|
+
Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28426
|
+
Processing by StaticBlocks::SnippetsController#create as HTML
|
28427
|
+
Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"english bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
|
28428
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
28429
|
+
[1m[36mStaticBlocks::Snippet Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1[0m
|
28430
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00]]
|
28431
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "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[0m
|
28432
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "english bar"], ["created_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00]]
|
28433
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.0ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1[0m [["id", 1]]
|
28434
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
28435
|
+
Redirected to http://www.example.com/static_blocks/en/snippets/1
|
28436
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
|
28437
|
+
Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28438
|
+
Processing by StaticBlocks::SnippetsController#show as HTML
|
28439
|
+
Parameters: {"locale"=>"en", "id"=>"1"}
|
28440
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1[0m [["id", "1"]]
|
28441
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28442
|
+
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
|
28443
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28444
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28445
|
+
Parameters: {"locale"=>"en"}
|
28446
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "static_blocks_snippets" [0m
|
28447
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
|
28448
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28449
|
+
Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 0.3ms)
|
28450
|
+
Started GET "/static_blocks" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28451
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28452
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28453
|
+
Parameters: {"locale"=>"en"}
|
28454
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
28455
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
28456
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28457
|
+
Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.3ms)
|
28458
|
+
Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28459
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28460
|
+
Parameters: {"locale"=>"wk"}
|
28461
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "static_blocks_snippets" [0m
|
28462
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
|
28463
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28464
|
+
Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 0.3ms)
|
28465
|
+
Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28466
|
+
Processing by StaticBlocks::SnippetsController#edit as HTML
|
28467
|
+
Parameters: {"locale"=>"wk", "id"=>"1"}
|
28468
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
|
28469
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28470
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.1ms)
|
28471
|
+
Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms)
|
28472
|
+
Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28473
|
+
Processing by StaticBlocks::SnippetsController#update as HTML
|
28474
|
+
Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
|
28475
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
|
28476
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
28477
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28478
|
+
[1m[36mStaticBlocks::Snippet Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1[0m
|
28479
|
+
[1m[35m (0.2ms)[0m UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "updated_at" = '2013-06-28 04:20:08.963135' WHERE "static_blocks_snippets"."id" = 1
|
28480
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", nil], ["created_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:08 UTC +00:00]]
|
28481
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m 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
|
28482
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-06-28 04:20:08.966814' WHERE "static_blocks_snippet_translations"."id" = 2[0m
|
28483
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
|
28484
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.0ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1[0m [["id", 2]]
|
28485
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
28486
|
+
Redirected to http://www.example.com/static_blocks/wk/snippets/1
|
28487
|
+
Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
|
28488
|
+
Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28489
|
+
Processing by StaticBlocks::SnippetsController#show as HTML
|
28490
|
+
Parameters: {"locale"=>"wk", "id"=>"1"}
|
28491
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1[0m [["id", "1"]]
|
28492
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28493
|
+
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)
|
28494
|
+
Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-06-27 21:20:08 -0700
|
28495
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28496
|
+
Parameters: {"locale"=>"wk"}
|
28497
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "static_blocks_snippets" [0m
|
28498
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
|
28499
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28500
|
+
Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.3ms)
|
28501
|
+
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-27 21:20:08 -0700
|
28502
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28503
|
+
Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"foo", "translations_content_cont"=>"wookie bar", "status_cont"=>"published"}, "commit"=>"Search", "locale"=>"wk"}
|
28504
|
+
[1m[35m (0.2ms)[0m 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%'))
|
28505
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "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[0m
|
28506
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28507
|
+
Completed 200 OK in 19ms (Views: 14.7ms | ActiveRecord: 0.4ms)
|
28508
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
28509
|
+
[1m[35m (0.0ms)[0m begin transaction
|
28510
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
28511
|
+
[1m[35mStaticBlocks::Snippet Exists (0.1ms)[0m SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
|
28512
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28513
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m 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
|
28514
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28515
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
|
28516
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28517
|
+
Started GET "/static_blocks" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28518
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28519
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28520
|
+
Parameters: {"locale"=>"en"}
|
28521
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
28522
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
28523
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28524
|
+
Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.3ms)
|
28525
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
28526
|
+
[1m[35m (0.0ms)[0m begin transaction
|
28527
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
28528
|
+
[1m[35mStaticBlocks::Snippet Exists (0.1ms)[0m SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
|
28529
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28530
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m 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
|
28531
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28532
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
|
28533
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28534
|
+
Started GET "/static_blocks" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28535
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28536
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28537
|
+
Parameters: {"locale"=>"en"}
|
28538
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
28539
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
28540
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28541
|
+
Completed 200 OK in 15ms (Views: 13.9ms | ActiveRecord: 0.3ms)
|
28542
|
+
Started GET "/static_blocks/en/snippets/new" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28543
|
+
Processing by StaticBlocks::SnippetsController#new as HTML
|
28544
|
+
Parameters: {"locale"=>"en"}
|
28545
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (2.1ms)
|
28546
|
+
Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
|
28547
|
+
Started POST "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28548
|
+
Processing by StaticBlocks::SnippetsController#create as HTML
|
28549
|
+
Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"baz", "content"=>"qux", "status"=>"published"}, "commit"=>"Submit", "locale"=>"en"}
|
28550
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
28551
|
+
[1m[35mStaticBlocks::Snippet Exists (0.1ms)[0m SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'baz' LIMIT 1
|
28552
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "qux"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["status", "published"], ["title", "baz"], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28553
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m 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
|
28554
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "qux"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 2], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28555
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
|
28556
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28557
|
+
Redirected to http://www.example.com/static_blocks/en/snippets/2
|
28558
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
|
28559
|
+
Started GET "/static_blocks/en/snippets/2" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28560
|
+
Processing by StaticBlocks::SnippetsController#show as HTML
|
28561
|
+
Parameters: {"locale"=>"en", "id"=>"2"}
|
28562
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "2"]]
|
28563
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 2[0m
|
28564
|
+
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
|
28565
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
28566
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
28567
|
+
[1m[35m (0.0ms)[0m begin transaction
|
28568
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
28569
|
+
[1m[35mStaticBlocks::Snippet Exists (0.1ms)[0m SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
|
28570
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28571
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m 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
|
28572
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28573
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
|
28574
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28575
|
+
Started GET "/static_blocks" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28576
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28577
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28578
|
+
Parameters: {"locale"=>"en"}
|
28579
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
28580
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
28581
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28582
|
+
Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 0.3ms)
|
28583
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
28584
|
+
[1m[35m (0.0ms)[0m begin transaction
|
28585
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
28586
|
+
[1m[35mStaticBlocks::Snippet Exists (0.1ms)[0m SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
|
28587
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28588
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m 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
|
28589
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28590
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
|
28591
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28592
|
+
Started GET "/static_blocks" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28593
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28594
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28595
|
+
Parameters: {"locale"=>"en"}
|
28596
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
28597
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
28598
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28599
|
+
Completed 200 OK in 15ms (Views: 13.7ms | ActiveRecord: 0.3ms)
|
28600
|
+
Started GET "/static_blocks/en/snippets/1/edit" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28601
|
+
Processing by StaticBlocks::SnippetsController#edit as HTML
|
28602
|
+
Parameters: {"locale"=>"en", "id"=>"1"}
|
28603
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1[0m [["id", "1"]]
|
28604
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28605
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.4ms)
|
28606
|
+
Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.2ms)
|
28607
|
+
Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28608
|
+
Processing by StaticBlocks::SnippetsController#edit as HTML
|
28609
|
+
Parameters: {"locale"=>"wk", "id"=>"1"}
|
28610
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1[0m [["id", "1"]]
|
28611
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28612
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.2ms)
|
28613
|
+
Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms)
|
28614
|
+
Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28615
|
+
Processing by StaticBlocks::SnippetsController#update as HTML
|
28616
|
+
Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"argh", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
|
28617
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1[0m [["id", "1"]]
|
28618
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
28619
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28620
|
+
[1m[35mStaticBlocks::Snippet Exists (0.1ms)[0m SELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1
|
28621
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "static_blocks_snippets" SET "content" = 'argh', "status" = 'published', "updated_at" = '2013-06-28 04:20:09.360832' WHERE "static_blocks_snippets"."id" = 1[0m
|
28622
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", nil], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28623
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "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[0m
|
28624
|
+
[1m[35m (0.1ms)[0m UPDATE "static_blocks_snippet_translations" SET "content" = 'argh', "updated_at" = '2013-06-28 04:20:09.364445' WHERE "static_blocks_snippet_translations"."id" = 2
|
28625
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.0ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1[0m [["id", 1]]
|
28626
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 2]]
|
28627
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28628
|
+
Redirected to http://www.example.com/static_blocks/wk/snippets/1
|
28629
|
+
Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
|
28630
|
+
Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28631
|
+
Processing by StaticBlocks::SnippetsController#show as HTML
|
28632
|
+
Parameters: {"locale"=>"wk", "id"=>"1"}
|
28633
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
|
28634
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28635
|
+
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)
|
28636
|
+
Started GET "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28637
|
+
Processing by StaticBlocks::SnippetsController#show as HTML
|
28638
|
+
Parameters: {"locale"=>"en", "id"=>"1"}
|
28639
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
|
28640
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28641
|
+
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
|
28642
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
28643
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
28644
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
28645
|
+
[1m[36mStaticBlocks::Snippet Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1[0m
|
28646
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28647
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "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[0m
|
28648
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28649
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.0ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1[0m [["id", 1]]
|
28650
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
28651
|
+
Started GET "/static_blocks" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28652
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28653
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28654
|
+
Parameters: {"locale"=>"en"}
|
28655
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "static_blocks_snippets" [0m
|
28656
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
|
28657
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28658
|
+
Completed 200 OK in 41ms (Views: 40.3ms | ActiveRecord: 0.3ms)
|
28659
|
+
Started DELETE "/static_blocks/en/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28660
|
+
Processing by StaticBlocks::SnippetsController#destroy as HTML
|
28661
|
+
Parameters: {"locale"=>"en", "id"=>"1"}
|
28662
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
|
28663
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
28664
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28665
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ?[0m [["id", 1]]
|
28666
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? [["id", 1]]
|
28667
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28668
|
+
Redirected to http://www.example.com/static_blocks/en/snippets
|
28669
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
|
28670
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28671
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28672
|
+
Parameters: {"locale"=>"en"}
|
28673
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
28674
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
28675
|
+
Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.2ms)
|
28676
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
28677
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
28678
|
+
[1m[35m (0.0ms)[0m begin transaction
|
28679
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
28680
|
+
[1m[35mStaticBlocks::Snippet Exists (0.1ms)[0m SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
|
28681
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "english bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["status", "Published"], ["title", "foo"], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28682
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m 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
|
28683
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "english bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28684
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
|
28685
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28686
|
+
Started GET "/static_blocks" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28687
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28688
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28689
|
+
Parameters: {"locale"=>"en"}
|
28690
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
28691
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
28692
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28693
|
+
Completed 200 OK in 43ms (Views: 41.9ms | ActiveRecord: 0.3ms)
|
28694
|
+
Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28695
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28696
|
+
Parameters: {"locale"=>"wk"}
|
28697
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "static_blocks_snippets" [0m
|
28698
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
|
28699
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28700
|
+
Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 0.3ms)
|
28701
|
+
Started GET "/static_blocks/wk/snippets/1/edit" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28702
|
+
Processing by StaticBlocks::SnippetsController#edit as HTML
|
28703
|
+
Parameters: {"locale"=>"wk", "id"=>"1"}
|
28704
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
|
28705
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28706
|
+
Rendered /home/travis/code/static_blocks/app/views/static_blocks/snippets/_form.html.erb (3.1ms)
|
28707
|
+
Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms)
|
28708
|
+
Started PUT "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28709
|
+
Processing by StaticBlocks::SnippetsController#update as HTML
|
28710
|
+
Parameters: {"utf8"=>"✓", "snippet"=>{"title"=>"foo", "content"=>"wookie bar", "status"=>"published"}, "commit"=>"Submit", "locale"=>"wk", "id"=>"1"}
|
28711
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1 [["id", "1"]]
|
28712
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
28713
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28714
|
+
[1m[36mStaticBlocks::Snippet Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "static_blocks_snippets" WHERE ("static_blocks_snippets"."title" = 'foo' AND "static_blocks_snippets"."id" != 1) LIMIT 1[0m
|
28715
|
+
[1m[35m (0.2ms)[0m UPDATE "static_blocks_snippets" SET "content" = 'wookie bar', "status" = 'published', "updated_at" = '2013-06-28 04:20:09.596883' WHERE "static_blocks_snippets"."id" = 1
|
28716
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", nil], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["locale", "wk"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28717
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m 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
|
28718
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "static_blocks_snippet_translations" SET "content" = 'wookie bar', "updated_at" = '2013-06-28 04:20:09.600560' WHERE "static_blocks_snippet_translations"."id" = 2[0m
|
28719
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
|
28720
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.0ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1[0m [["id", 2]]
|
28721
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
28722
|
+
Redirected to http://www.example.com/static_blocks/wk/snippets/1
|
28723
|
+
Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
|
28724
|
+
Started GET "/static_blocks/wk/snippets/1" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28725
|
+
Processing by StaticBlocks::SnippetsController#show as HTML
|
28726
|
+
Parameters: {"locale"=>"wk", "id"=>"1"}
|
28727
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."id" = ? LIMIT 1[0m [["id", "1"]]
|
28728
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28729
|
+
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)
|
28730
|
+
Started GET "/static_blocks/wk/snippets" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28731
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28732
|
+
Parameters: {"locale"=>"wk"}
|
28733
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "static_blocks_snippets" [0m
|
28734
|
+
[1m[35mStaticBlocks::Snippet Load (0.1ms)[0m SELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0
|
28735
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1[0m
|
28736
|
+
Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.3ms)
|
28737
|
+
Started GET "/static_blocks/en/snippets" for 127.0.0.1 at 2013-06-27 21:20:09 -0700
|
28738
|
+
Processing by StaticBlocks::SnippetsController#index as HTML
|
28739
|
+
Parameters: {"locale"=>"en"}
|
28740
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "static_blocks_snippets"
|
28741
|
+
[1m[36mStaticBlocks::Snippet Load (0.1ms)[0m [1mSELECT "static_blocks_snippets".* FROM "static_blocks_snippets" ORDER BY title asc LIMIT 10 OFFSET 0[0m
|
28742
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."static_blocks_snippet_id" = 1
|
28743
|
+
Completed 200 OK in 15ms (Views: 13.9ms | ActiveRecord: 0.3ms)
|
28744
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
28745
|
+
[1m[35m (0.0ms)[0m begin transaction
|
28746
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
28747
|
+
[1m[35mStaticBlocks::Snippet Exists (0.1ms)[0m SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
|
28748
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28749
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m 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
|
28750
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28751
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
|
28752
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28753
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
28754
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
28755
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
28756
|
+
[1m[36mStaticBlocks::Snippet Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1[0m
|
28757
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28758
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.1ms)[0m [1mSELECT "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[0m
|
28759
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28760
|
+
[1m[36mStaticBlocks::Snippet::Translation Load (0.0ms)[0m [1mSELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1[0m [["id", 1]]
|
28761
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
28762
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
28763
|
+
[1m[35m (0.0ms)[0m begin transaction
|
28764
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
28765
|
+
[1m[35mStaticBlocks::Snippet Exists (0.1ms)[0m SELECT 1 AS one FROM "static_blocks_snippets" WHERE "static_blocks_snippets"."title" = 'foo' LIMIT 1
|
28766
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "static_blocks_snippets" ("content", "created_at", "status", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["status", "published"], ["title", "foo"], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28767
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.1ms)[0m 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
|
28768
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "static_blocks_snippet_translations" ("content", "created_at", "locale", "static_blocks_snippet_id", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "bar"], ["created_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00], ["locale", "en"], ["static_blocks_snippet_id", 1], ["updated_at", Fri, 28 Jun 2013 04:20:09 UTC +00:00]]
|
28769
|
+
[1m[35mStaticBlocks::Snippet::Translation Load (0.0ms)[0m SELECT "static_blocks_snippet_translations".* FROM "static_blocks_snippet_translations" WHERE "static_blocks_snippet_translations"."id" = ? LIMIT 1 [["id", 1]]
|
28770
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28771
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: static_blocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -292,8 +292,8 @@ files:
|
|
292
292
|
- app/helpers/static_blocks/application_helper.rb
|
293
293
|
- config/initializers/kaminari.rb
|
294
294
|
- config/routes.rb
|
295
|
-
- db/migrate/
|
296
|
-
- db/migrate/
|
295
|
+
- db/migrate/20130612034816_create_snippet_translations.rb
|
296
|
+
- db/migrate/20130611042319_create_static_blocks_snippets.rb
|
297
297
|
- lib/generators/install_generator.rb
|
298
298
|
- lib/static_blocks.rb
|
299
299
|
- lib/tasks/static_blocks_tasks.rake
|