Created
March 1, 2020 12:34
Star
You must be signed in to star a gist
ActionText console output - first post creation/update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started POST "/posts" for ::1 at 2020-03-01 17:55:17 +0530 | |
Processing by PostsController#create as HTML | |
Parameters: {"authenticity_token"=>"B+6iQVsLtPcA3Thj+WT5nAhYpwTvJLj029fmdj4yxbaT2LfmyYiODXAbVwM1AXNoRVXgDpgA2WIJSCa55i8AnA==", "post"=>{"title"=>"Test 5", "body"=>"<div>Test of attachments<br><figure data-trix-attachment=\"{"contentType":"image/png","filename":"icons8-privacy-64.png","filesize":3240,"height":64,"sgid":"BAh7CEkiCGdpZAY6BkVUSSIxZ2lkOi8vYmxvZy9BY3RpdmVTdG9yYWdlOjpCbG9iLzEwP2V4cGlyZXNfaW4GOwBUSSIMcHVycG9zZQY7AFRJIg9hdHRhY2hhYmxlBjsAVEkiD2V4cGlyZXNfYXQGOwBUMA==--1501f812e6aff2ea8f73e49da338d81616d49d06","url":"http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBEdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0c4219f9c2dead51fade63e69fc0f17ed99f19d5/icons8-privacy-64.png","width":64}\" data-trix-content-type=\"image/png\" data-trix-attributes=\"{"presentation":"gallery"}\" class=\"attachment attachment--preview attachment--png\"><img src=\"http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBEdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0c4219f9c2dead51fade63e69fc0f17ed99f19d5/icons8-privacy-64.png\" width=\"64\" height=\"64\"><figcaption class=\"attachment__caption\"><span class=\"attachment__name\">icons8-privacy-64.png</span> <span class=\"attachment__size\">3.16 KB</span></figcaption></figure><br>More Text<br><br>More more text</div>"}, "commit"=>"Create Post"} | |
/home/umarghouse/.rvm/gems/ruby-2.7.0/gems/activerecord-6.0.2.1/lib/active_record/persistence.rb:470: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call | |
/home/umarghouse/.rvm/gems/ruby-2.7.0/gems/activerecord-6.0.2.1/lib/active_record/timestamp.rb:127: warning: The called method `create_or_update' is defined here | |
(0.2ms) BEGIN | |
↳ app/controllers/posts_controller.rb:30:in `block in create' | |
Post Create (0.5ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["title", "Test 5"], ["created_at", "2020-03-01 12:25:26.758853"], ["updated_at", "2020-03-01 12:25:26.758853"]] | |
↳ app/controllers/posts_controller.rb:30:in `block in create' | |
ActiveStorage::Blob Load (0.3ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] | |
↳ app/controllers/posts_controller.rb:30:in `block in create' | |
CACHE ActiveStorage::Blob Load (0.0ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] | |
↳ app/controllers/posts_controller.rb:30:in `block in create' | |
ActionText::RichText Create (0.6ms) INSERT INTO "action_text_rich_texts" ("name", "body", "record_type", "record_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "body"], ["body", "<div>Test of attachments<br><action-text-attachment sgid=\"BAh7CEkiCGdpZAY6BkVUSSIxZ2lkOi8vYmxvZy9BY3RpdmVTdG9yYWdlOjpCbG9iLzEwP2V4cGlyZXNfaW4GOwBUSSIMcHVycG9zZQY7AFRJIg9hdHRhY2hhYmxlBjsAVEkiD2V4cGlyZXNfYXQGOwBUMA==--1501f812e6aff2ea8f73e49da338d81616d49d06\" content-type=\"image/png\" url=\"http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBEdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0c4219f9c2dead51fade63e69fc0f17ed99f19d5/icons8-privacy-64.png\" filename=\"icons8-privacy-64.png\" filesize=\"3240\" width=\"64\" height=\"64\" presentation=\"gallery\"></action-text-attachment><br>More Text<br><br>More more text</div>"], ["record_type", "Post"], ["record_id", 5], ["created_at", "2020-03-01 12:25:26.776813"], ["updated_at", "2020-03-01 12:25:26.776813"]] | |
↳ app/controllers/posts_controller.rb:30:in `block in create' | |
ActiveStorage::Attachment Load (0.5ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 5], ["record_type", "ActionText::RichText"], ["name", "embeds"]] | |
↳ app/controllers/posts_controller.rb:30:in `block in create' | |
ActiveStorage::Blob Load (0.4ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] | |
↳ app/controllers/posts_controller.rb:30:in `block in create' | |
ActiveStorage::Attachment Create (0.8ms) INSERT INTO "active_storage_attachments" ("name", "record_type", "record_id", "blob_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "embeds"], ["record_type", "ActionText::RichText"], ["record_id", 5], ["blob_id", 10], ["created_at", "2020-03-01 12:25:26.803396"]] | |
↳ app/controllers/posts_controller.rb:30:in `block in create' | |
/home/umarghouse/.rvm/gems/ruby-2.7.0/gems/activerecord-6.0.2.1/lib/active_record/no_touching.rb:62: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call | |
/home/umarghouse/.rvm/gems/ruby-2.7.0/gems/activerecord-6.0.2.1/lib/active_record/touch_later.rb:36: warning: The called method `touch' is defined here | |
/home/umarghouse/.rvm/gems/ruby-2.7.0/gems/activerecord-6.0.2.1/lib/active_record/callbacks.rb:318: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call | |
/home/umarghouse/.rvm/gems/ruby-2.7.0/gems/activerecord-6.0.2.1/lib/active_record/persistence.rb:851: warning: The called method `touch' is defined here | |
ActionText::RichText Update (0.6ms) UPDATE "action_text_rich_texts" SET "updated_at" = $1 WHERE "action_text_rich_texts"."id" = $2 [["updated_at", "2020-03-01 12:25:26.806680"], ["id", 5]] | |
↳ app/controllers/posts_controller.rb:30:in `block in create' | |
Post Update (0.5ms) UPDATE "posts" SET "updated_at" = $1 WHERE "posts"."id" = $2 [["updated_at", "2020-03-01 12:25:26.815047"], ["id", 5]] | |
↳ app/controllers/posts_controller.rb:30:in `block in create' | |
(0.9ms) COMMIT | |
↳ app/controllers/posts_controller.rb:30:in `block in create' | |
(0.3ms) BEGIN | |
↳ app/controllers/posts_controller.rb:30:in `block in create' | |
ActiveStorage::Blob Update (0.4ms) UPDATE "active_storage_blobs" SET "metadata" = $1 WHERE "active_storage_blobs"."id" = $2 [["metadata", "{\"identified\":true}"], ["id", 10]] | |
↳ app/controllers/posts_controller.rb:30:in `block in create' | |
(1.1ms) COMMIT | |
↳ app/controllers/posts_controller.rb:30:in `block in create' | |
/home/umarghouse/.rvm/gems/ruby-2.7.0/gems/activestorage-6.0.2.1/app/models/active_storage/blob/identifiable.rb:29: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call | |
/home/umarghouse/.rvm/gems/ruby-2.7.0/gems/activestorage-6.0.2.1/lib/active_storage/service.rb:72: warning: The called method `update_metadata' is defined here | |
[ActiveJob] Enqueued ActiveStorage::AnalyzeJob (Job ID: 3e434260-481b-4ac4-ac3e-d21966317f02) to Async(active_storage_analysis) with arguments: #<GlobalID:0x00007f6d947bb188 @uri=#<URI::GID gid://blog/ActiveStorage::Blob/10>> | |
Redirected to http://localhost:3000/posts/5 | |
Completed 302 Found in 93ms (ActiveRecord: 11.9ms | Allocations: 50044) | |
ActiveStorage::Blob Load (0.9ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] | |
[ActiveJob] [ActiveStorage::AnalyzeJob] [3e434260-481b-4ac4-ac3e-d21966317f02] Performing ActiveStorage::AnalyzeJob (Job ID: 3e434260-481b-4ac4-ac3e-d21966317f02) from Async(active_storage_analysis) enqueued at 2020-03-01T12:25:26Z with arguments: #<GlobalID:0x00007f6d580196f0 @uri=#<URI::GID gid://blog/ActiveStorage::Blob/10>> | |
/home/umarghouse/.rvm/gems/ruby-2.7.0/gems/activestorage-6.0.2.1/lib/active_storage/service.rb:86: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call | |
/home/umarghouse/.rvm/gems/ruby-2.7.0/gems/activestorage-6.0.2.1/lib/active_storage/downloader.rb:11: warning: The called method `open' is defined here | |
Started GET "/posts/5" for ::1 at 2020-03-01 17:55:26 +0530 | |
Processing by PostsController#show as HTML | |
Parameters: {"id"=>"5"} | |
[ActiveJob] [ActiveStorage::AnalyzeJob] [3e434260-481b-4ac4-ac3e-d21966317f02] Disk Storage (12.4ms) Downloaded file from key: 8406it7pi3a6eh6ca9wrs93oahha | |
Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] | |
↳ app/controllers/posts_controller.rb:67:in `set_post' | |
Rendering posts/show.html.erb within layouts/application | |
ActionText::RichText Load (0.4ms) SELECT "action_text_rich_texts".* FROM "action_text_rich_texts" WHERE "action_text_rich_texts"."record_id" = $1 AND "action_text_rich_texts"."record_type" = $2 AND "action_text_rich_texts"."name" = $3 LIMIT $4 [["record_id", 5], ["record_type", "Post"], ["name", "body"], ["LIMIT", 1]] | |
↳ app/views/posts/show.html.erb:14 | |
ActiveStorage::Blob Load (0.4ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] | |
↳ app/views/posts/show.html.erb:14 | |
Rendered active_storage/blobs/_blob.html.erb (Duration: 0.7ms | Allocations: 492) | |
Rendered /home/umarghouse/.rvm/gems/ruby-2.7.0/gems/actiontext-6.0.2.1/app/views/action_text/content/_layout.html.erb (Duration: 24.5ms | Allocations: 4021) | |
Rendered posts/show.html.erb within layouts/application (Duration: 30.6ms | Allocations: 5638) | |
[Webpacker] Everything's up-to-date. Nothing to do | |
Completed 200 OK in 74ms (Views: 60.1ms | ActiveRecord: 1.1ms | Allocations: 17685) | |
Started GET "/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBEdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0c4219f9c2dead51fade63e69fc0f17ed99f19d5/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQWdBRWFRSUFBdz09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--18f3d7c649b1d8c97f5d46af05e515625b1b21d5/icons8-privacy-64.png" for ::1 at 2020-03-01 17:55:26 +0530 | |
Processing by ActiveStorage::RepresentationsController#show as PNG | |
Parameters: {"signed_blob_id"=>"eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBEdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0c4219f9c2dead51fade63e69fc0f17ed99f19d5", "variation_key"=>"eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQWdBRWFRSUFBdz09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--18f3d7c649b1d8c97f5d46af05e515625b1b21d5", "filename"=>"icons8-privacy-64"} | |
ActiveStorage::Blob Load (0.8ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] | |
[ActiveJob] [ActiveStorage::AnalyzeJob] [3e434260-481b-4ac4-ac3e-d21966317f02] (0.2ms) BEGIN | |
Disk Storage (0.2ms) Checked if file exists at key: variants/8406it7pi3a6eh6ca9wrs93oahha/4066e1dddb9db93046d8329a8e92cbe88a1a9837aa6151ae469984d94528a2ce (no) | |
[ActiveJob] [ActiveStorage::AnalyzeJob] [3e434260-481b-4ac4-ac3e-d21966317f02] ActiveStorage::Blob Update (0.5ms) UPDATE "active_storage_blobs" SET "metadata" = $1 WHERE "active_storage_blobs"."id" = $2 [["metadata", "{\"identified\":true,\"width\":64,\"height\":64,\"analyzed\":true}"], ["id", 10]] | |
[ActiveJob] [ActiveStorage::AnalyzeJob] [3e434260-481b-4ac4-ac3e-d21966317f02] (5.8ms) COMMIT | |
[ActiveJob] [ActiveStorage::AnalyzeJob] [3e434260-481b-4ac4-ac3e-d21966317f02] Performed ActiveStorage::AnalyzeJob (Job ID: 3e434260-481b-4ac4-ac3e-d21966317f02) from Async(active_storage_analysis) in 161.72ms | |
Disk Storage (7.5ms) Downloaded file from key: 8406it7pi3a6eh6ca9wrs93oahha | |
Disk Storage (0.9ms) Uploaded file to key: variants/8406it7pi3a6eh6ca9wrs93oahha/4066e1dddb9db93046d8329a8e92cbe88a1a9837aa6151ae469984d94528a2ce | |
Disk Storage (0.4ms) Generated URL for file at key: variants/8406it7pi3a6eh6ca9wrs93oahha/4066e1dddb9db93046d8329a8e92cbe88a1a9837aa6151ae469984d94528a2ce (http://localhost:3000/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9JYTJWNVNTSnJkbUZ5YVdGdWRITXZPRFF3Tm1sME4zQnBNMkUyWldnMlkyRTVkM0p6T1ROdllXaG9ZUzgwTURZMlpURmtaR1JpT1dSaU9UTXdORFprT0RNeU9XRTRaVGt5WTJKbE9EaGhNV0U1T0RNM1lXRTJNVFV4WVdVME5qazVPRFJrT1RRMU1qaGhNbU5sQmpvR1JWUTZFR1JwYzNCdmMybDBhVzl1U1NKVmFXNXNhVzVsT3lCbWFXeGxibUZ0WlQwaWFXTnZibk00TFhCeWFYWmhZM2t0TmpRdWNHNW5JanNnWm1sc1pXNWhiV1VxUFZWVVJpMDRKeWRwWTI5dWN6Z3RjSEpwZG1GamVTMDJOQzV3Ym1jR093WlVPaEZqYjI1MFpXNTBYM1I1Y0dWSklnNXBiV0ZuWlM5d2JtY0dPd1pVIiwiZXhwIjoiMjAyMC0wMy0wMVQxMjozMDoyNy4wNzFaIiwicHVyIjoiYmxvYl9rZXkifX0=--ca1a037a95904f45cf8a0b139e563fe05ed690bb/icons8-privacy-64.png?content_type=image%2Fpng&disposition=inline%3B+filename%3D%22icons8-privacy-64.png%22%3B+filename%2A%3DUTF-8%27%27icons8-privacy-64.png) | |
Redirected to http://localhost:3000/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9JYTJWNVNTSnJkbUZ5YVdGdWRITXZPRFF3Tm1sME4zQnBNMkUyWldnMlkyRTVkM0p6T1ROdllXaG9ZUzgwTURZMlpURmtaR1JpT1dSaU9UTXdORFprT0RNeU9XRTRaVGt5WTJKbE9EaGhNV0U1T0RNM1lXRTJNVFV4WVdVME5qazVPRFJrT1RRMU1qaGhNbU5sQmpvR1JWUTZFR1JwYzNCdmMybDBhVzl1U1NKVmFXNXNhVzVsT3lCbWFXeGxibUZ0WlQwaWFXTnZibk00TFhCeWFYWmhZM2t0TmpRdWNHNW5JanNnWm1sc1pXNWhiV1VxUFZWVVJpMDRKeWRwWTI5dWN6Z3RjSEpwZG1GamVTMDJOQzV3Ym1jR093WlVPaEZqYjI1MFpXNTBYM1I1Y0dWSklnNXBiV0ZuWlM5d2JtY0dPd1pVIiwiZXhwIjoiMjAyMC0wMy0wMVQxMjozMDoyNy4wNzFaIiwicHVyIjoiYmxvYl9rZXkifX0=--ca1a037a95904f45cf8a0b139e563fe05ed690bb/icons8-privacy-64.png?content_type=image%2Fpng&disposition=inline%3B+filename%3D%22icons8-privacy-64.png%22%3B+filename%2A%3DUTF-8%27%27icons8-privacy-64.png | |
Completed 302 Found in 64ms (ActiveRecord: 0.8ms | Allocations: 6512) | |
Started GET "/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9JYTJWNVNTSnJkbUZ5YVdGdWRITXZPRFF3Tm1sME4zQnBNMkUyWldnMlkyRTVkM0p6T1ROdllXaG9ZUzgwTURZMlpURmtaR1JpT1dSaU9UTXdORFprT0RNeU9XRTRaVGt5WTJKbE9EaGhNV0U1T0RNM1lXRTJNVFV4WVdVME5qazVPRFJrT1RRMU1qaGhNbU5sQmpvR1JWUTZFR1JwYzNCdmMybDBhVzl1U1NKVmFXNXNhVzVsT3lCbWFXeGxibUZ0WlQwaWFXTnZibk00TFhCeWFYWmhZM2t0TmpRdWNHNW5JanNnWm1sc1pXNWhiV1VxUFZWVVJpMDRKeWRwWTI5dWN6Z3RjSEpwZG1GamVTMDJOQzV3Ym1jR093WlVPaEZqYjI1MFpXNTBYM1I1Y0dWSklnNXBiV0ZuWlM5d2JtY0dPd1pVIiwiZXhwIjoiMjAyMC0wMy0wMVQxMjozMDoyNy4wNzFaIiwicHVyIjoiYmxvYl9rZXkifX0=--ca1a037a95904f45cf8a0b139e563fe05ed690bb/icons8-privacy-64.png?content_type=image%2Fpng&disposition=inline%3B+filename%3D%22icons8-privacy-64.png%22%3B+filename%2A%3DUTF-8%27%27icons8-privacy-64.png" for ::1 at 2020-03-01 17:55:27 +0530 | |
Processing by ActiveStorage::DiskController#show as PNG | |
Parameters: {"content_type"=>"image/png", "disposition"=>"inline; filename=\"icons8-privacy-64.png\"; filename*=UTF-8''icons8-privacy-64.png", "encoded_key"=>"eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9JYTJWNVNTSnJkbUZ5YVdGdWRITXZPRFF3Tm1sME4zQnBNMkUyWldnMlkyRTVkM0p6T1ROdllXaG9ZUzgwTURZMlpURmtaR1JpT1dSaU9UTXdORFprT0RNeU9XRTRaVGt5WTJKbE9EaGhNV0U1T0RNM1lXRTJNVFV4WVdVME5qazVPRFJrT1RRMU1qaGhNbU5sQmpvR1JWUTZFR1JwYzNCdmMybDBhVzl1U1NKVmFXNXNhVzVsT3lCbWFXeGxibUZ0WlQwaWFXTnZibk00TFhCeWFYWmhZM2t0TmpRdWNHNW5JanNnWm1sc1pXNWhiV1VxUFZWVVJpMDRKeWRwWTI5dWN6Z3RjSEpwZG1GamVTMDJOQzV3Ym1jR093WlVPaEZqYjI1MFpXNTBYM1I1Y0dWSklnNXBiV0ZuWlM5d2JtY0dPd1pVIiwiZXhwIjoiMjAyMC0wMy0wMVQxMjozMDoyNy4wNzFaIiwicHVyIjoiYmxvYl9rZXkifX0=--ca1a037a95904f45cf8a0b139e563fe05ed690bb", "filename"=>"icons8-privacy-64"} | |
Completed 200 OK in 2ms (ActiveRecord: 0.0ms | Allocations: 363) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment