Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ActionText console output - second post creation/update
Started PATCH "/posts/5" for ::1 at 2020-03-01 17:57:02 +0530
Processing by PostsController#update as HTML
Parameters: {"authenticity_token"=>"tva9087w4a14wDjWctFdUPs5fA4BT08nFwcJY8npJIM4LhvZzhSyzi+ibhdpOy7YkbObc+XJ3Fppp27s/6Y6Zw==", "post"=>{"title"=>"Test 5", "body"=>"<div>Test of attachments<br><figure data-trix-attachment=\"{&quot;content&quot;:&quot;<figure class=\\&quot;attachment attachment--preview attachment--png\\&quot;>\\n <img src=\\&quot;http://localhost:3000/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBEdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0c4219f9c2dead51fade63e69fc0f17ed99f19d5/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQWdBRWFRSUFBdz09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--18f3d7c649b1d8c97f5d46af05e515625b1b21d5/icons8-privacy-64.png\\&quot; />\\n\\n <figcaption class=\\&quot;attachment__caption\\&quot;>\\n <span class=\\&quot;attachment__name\\&quot;>icons8-privacy-64.png</span>\\n <span class=\\&quot;attachment__size\\&quot;>3.16 KB</span>\\n </figcaption>\\n</figure>\\n&quot;,&quot;contentType&quot;:&quot;image/png&quot;,&quot;filename&quot;:&quot;icons8-privacy-64.png&quot;,&quot;filesize&quot;:3240,&quot;height&quot;:64,&quot;previewable&quot;:true,&quot;sgid&quot;:&quot;BAh7CEkiCGdpZAY6BkVUSSIxZ2lkOi8vYmxvZy9BY3RpdmVTdG9yYWdlOjpCbG9iLzEwP2V4cGlyZXNfaW4GOwBUSSIMcHVycG9zZQY7AFRJIg9hdHRhY2hhYmxlBjsAVEkiD2V4cGlyZXNfYXQGOwBUMA==--1501f812e6aff2ea8f73e49da338d81616d49d06&quot;,&quot;url&quot;:&quot;http://localhost:3000/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBEdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0c4219f9c2dead51fade63e69fc0f17ed99f19d5/icons8-privacy-64.png&quot;,&quot;width&quot;:64}\" data-trix-content-type=\"image/png\" data-trix-attributes=\"{&quot;presentation&quot;:&quot;gallery&quot;}\" class=\"attachment attachment--content attachment--png\"><figure class=\"attachment attachment--preview attachment--png\">\r\n <img src=\"http://localhost:3000/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBEdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0c4219f9c2dead51fade63e69fc0f17ed99f19d5/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9VY21WemFYcGxYM1J2WDJ4cGJXbDBXd2RwQWdBRWFRSUFBdz09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--18f3d7c649b1d8c97f5d46af05e515625b1b21d5/icons8-privacy-64.png\">\r\n\r\n <figcaption class=\"attachment__caption\">\r\n <span class=\"attachment__name\">icons8-privacy-64.png</span>\r\n <span class=\"attachment__size\">3.16 KB</span>\r\n </figcaption>\r\n</figure>\r\n<figcaption class=\"attachment__caption\"></figcaption></figure><br>More Text<br><br>More more text</div>"}, "commit"=>"Update Post", "id"=>"5"}
Post Load (0.5ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
↳ app/controllers/posts_controller.rb:67:in `set_post'
(0.3ms) BEGIN
↳ app/controllers/posts_controller.rb:44:in `block in update'
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/controllers/posts_controller.rb:44:in `block in update'
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:44:in `block in update'
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:44:in `block in update'
Rendered active_storage/blobs/_blob.html.erb (Duration: 0.7ms | Allocations: 479)
Rendered /home/umarghouse/.rvm/gems/ruby-2.7.0/gems/actiontext-6.0.2.1/app/views/action_text/content/_layout.html.erb (Duration: 6.5ms | Allocations: 4119)
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:44:in `block in update'
Rendered active_storage/blobs/_blob.html.erb (Duration: 0.6ms | Allocations: 479)
Rendered /home/umarghouse/.rvm/gems/ruby-2.7.0/gems/actiontext-6.0.2.1/app/views/action_text/content/_layout.html.erb (Duration: 5.4ms | Allocations: 4107)
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:44:in `block in update'
Rendered active_storage/blobs/_blob.html.erb (Duration: 0.7ms | Allocations: 479)
Rendered /home/umarghouse/.rvm/gems/ruby-2.7.0/gems/actiontext-6.0.2.1/app/views/action_text/content/_layout.html.erb (Duration: 8.7ms | Allocations: 4077)
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:44:in `block in update'
Rendered active_storage/blobs/_blob.html.erb (Duration: 0.7ms | Allocations: 479)
Rendered /home/umarghouse/.rvm/gems/ruby-2.7.0/gems/actiontext-6.0.2.1/app/views/action_text/content/_layout.html.erb (Duration: 6.9ms | Allocations: 4004)
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:44:in `block in update'
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:44:in `block in update'
Rendered active_storage/blobs/_blob.html.erb (Duration: 0.7ms | Allocations: 479)
Rendered /home/umarghouse/.rvm/gems/ruby-2.7.0/gems/actiontext-6.0.2.1/app/views/action_text/content/_layout.html.erb (Duration: 7.8ms | Allocations: 4254)
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:44:in `block in update'
Rendered active_storage/blobs/_blob.html.erb (Duration: 0.6ms | Allocations: 479)
Rendered /home/umarghouse/.rvm/gems/ruby-2.7.0/gems/actiontext-6.0.2.1/app/views/action_text/content/_layout.html.erb (Duration: 8.3ms | Allocations: 4196)
/home/umarghouse/.rvm/gems/ruby-2.7.0/gems/activerecord-6.0.2.1/lib/active_record/attribute_methods/dirty.rb:102: 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/activemodel-6.0.2.1/lib/active_model/attribute_mutation_tracker.rb:45: warning: The called method `changed?' is defined here
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:44:in `block in update'
Rendered active_storage/blobs/_blob.html.erb (Duration: 0.6ms | Allocations: 479)
Rendered /home/umarghouse/.rvm/gems/ruby-2.7.0/gems/actiontext-6.0.2.1/app/views/action_text/content/_layout.html.erb (Duration: 7.5ms | Allocations: 4315)
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:44:in `block in update'
Rendered active_storage/blobs/_blob.html.erb (Duration: 0.6ms | Allocations: 479)
Rendered /home/umarghouse/.rvm/gems/ruby-2.7.0/gems/actiontext-6.0.2.1/app/views/action_text/content/_layout.html.erb (Duration: 5.2ms | Allocations: 4256)
ActionText::RichText Update (0.4ms) UPDATE "action_text_rich_texts" SET "body" = $1, "updated_at" = $2 WHERE "action_text_rich_texts"."id" = $3 [["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\" previewable=\"true\" presentation=\"gallery\"></action-text-attachment><br>More Text<br><br>More more text</div>"], ["updated_at", "2020-03-01 12:27:02.706636"], ["id", 5]]
↳ app/controllers/posts_controller.rb:44:in `block in update'
ActiveStorage::Blob Load (0.2ms) 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:44:in `block in update'
Rendered active_storage/blobs/_blob.html.erb (Duration: 0.7ms | Allocations: 480)
Rendered /home/umarghouse/.rvm/gems/ruby-2.7.0/gems/actiontext-6.0.2.1/app/views/action_text/content/_layout.html.erb (Duration: 8.7ms | Allocations: 4450)
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:44:in `block in update'
Rendered active_storage/blobs/_blob.html.erb (Duration: 0.6ms | Allocations: 479)
Rendered /home/umarghouse/.rvm/gems/ruby-2.7.0/gems/actiontext-6.0.2.1/app/views/action_text/content/_layout.html.erb (Duration: 5.7ms | Allocations: 4302)
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:44:in `block in update'
Rendered active_storage/blobs/_blob.html.erb (Duration: 0.6ms | Allocations: 479)
Rendered /home/umarghouse/.rvm/gems/ruby-2.7.0/gems/actiontext-6.0.2.1/app/views/action_text/content/_layout.html.erb (Duration: 7.7ms | Allocations: 4385)
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:44:in `block in update'
Rendered active_storage/blobs/_blob.html.erb (Duration: 0.6ms | Allocations: 479)
Rendered /home/umarghouse/.rvm/gems/ruby-2.7.0/gems/actiontext-6.0.2.1/app/views/action_text/content/_layout.html.erb (Duration: 6.0ms | Allocations: 4325)
ActiveStorage::Attachment Load (0.4ms) 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:44:in `block in update'
Post Update (0.4ms) UPDATE "posts" SET "updated_at" = $1 WHERE "posts"."id" = $2 [["updated_at", "2020-03-01 12:27:02.761415"], ["id", 5]]
↳ app/controllers/posts_controller.rb:44:in `block in update'
(1.0ms) COMMIT
↳ app/controllers/posts_controller.rb:44:in `block in update'
Redirected to http://localhost:3000/posts/5
Completed 302 Found in 139ms (ActiveRecord: 4.2ms | Allocations: 67552)
Started GET "/posts/5" for ::1 at 2020-03-01 17:57:02 +0530
Processing by PostsController#show as HTML
Parameters: {"id"=>"5"}
Post Load (0.4ms) 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.3ms) 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: 480)
Rendered /home/umarghouse/.rvm/gems/ruby-2.7.0/gems/actiontext-6.0.2.1/app/views/action_text/content/_layout.html.erb (Duration: 8.4ms | Allocations: 3831)
Rendered posts/show.html.erb within layouts/application (Duration: 12.7ms | Allocations: 5376)
[Webpacker] Everything's up-to-date. Nothing to do
Completed 200 OK in 34ms (Views: 31.4ms | ActiveRecord: 1.1ms | Allocations: 13787)
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:57:02 +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 304 Not Modified in 1ms (ActiveRecord: 0.0ms | Allocations: 348)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.