質問編集履歴

2

修正

2020/04/11 12:28

投稿

Kazu_p8619
Kazu_p8619

スコア9

test CHANGED
File without changes
test CHANGED
@@ -406,7 +406,7 @@
406
406
 
407
407
  Processing by PostsController#create as HTML
408
408
 
409
- Parameters: {"authenticity_token"=>"fW38d+wZ0qCV5/BJWQsd5NdN8VB13ANqsEQO3HXYSV3g/xNL2CmZE0wmAyZGZhtxvA3sAk38orgqxYQiIWyDgQ==", "post"=>{"images"=>[#<ActionDispatch::Http::UploadedFile:0x00007f9daae2ec90 @tempfile=#<Tempfile:/var/folders/lh/yyn1dsls4r31qfjwv5thnpnw0000gn/T/RackMultipart20200411-89532-15g8boh.jpg>, @original_filename="top.jpg", @content_type="images/jpeg", @headers="Content-Disposition: form-data; name=\"post[image][]\"; filename=\"top.jpg\"\r\nContent-Type: images/jpeg\r\n">], "title"=>"title", "content"=>"説明", "tag_list"=>"aa"}, "commit"=>"投稿"}
409
+ Parameters: {"authenticity_token"=>"fW38d+wZ0qCV5/BJWQsd5NdN8VB13ANqsEQO3HXYSV3g/xNL2CmZE0wmAyZGZhtxvA3sAk38orgqxYQiIWyDgQ==", "post"=>{"images"=>[#<ActionDispatch::Http::UploadedFile:0x00007f9daae2ec90 @tempfile=#<Tempfile:/var/folders/lh/yyn1dsls4r31qfjwv5thnpnw0000gn/T/RackMultipart20200411-89532-15g8boh.jpg>, @original_filename="top.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"post[image][]\"; filename=\"top.jpg\"\r\nContent-Type: image/jpeg\r\n">], "title"=>"title", "content"=>"説明", "tag_list"=>"aa"}, "commit"=>"投稿"}
410
410
 
411
411
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
412
412
 

1

追記

2020/04/11 12:28

投稿

Kazu_p8619
Kazu_p8619

スコア9

test CHANGED
File without changes
test CHANGED
@@ -380,12 +380,6 @@
380
380
 
381
381
  Completed 200 OK in 208ms (Views: 30.5ms | ActiveRecord: 0.2ms | Allocations: 151950)
382
382
 
383
-
384
-
385
-
386
-
387
-
388
-
389
383
  ```
390
384
 
391
385
 
@@ -399,3 +393,35 @@
399
393
  Rails:6.0.2.1
400
394
 
401
395
  写真投稿機能:carrierwave
396
+
397
+
398
+
399
+
400
+
401
+ ### 追記
402
+
403
+ ```Log
404
+
405
+ Started POST "/posts" for ::1 at 2020-04-11 21:24:46 +0900
406
+
407
+ Processing by PostsController#create as HTML
408
+
409
+ Parameters: {"authenticity_token"=>"fW38d+wZ0qCV5/BJWQsd5NdN8VB13ANqsEQO3HXYSV3g/xNL2CmZE0wmAyZGZhtxvA3sAk38orgqxYQiIWyDgQ==", "post"=>{"images"=>[#<ActionDispatch::Http::UploadedFile:0x00007f9daae2ec90 @tempfile=#<Tempfile:/var/folders/lh/yyn1dsls4r31qfjwv5thnpnw0000gn/T/RackMultipart20200411-89532-15g8boh.jpg>, @original_filename="top.jpg", @content_type="images/jpeg", @headers="Content-Disposition: form-data; name=\"post[image][]\"; filename=\"top.jpg\"\r\nContent-Type: images/jpeg\r\n">], "title"=>"title", "content"=>"説明", "tag_list"=>"aa"}, "commit"=>"投稿"}
410
+
411
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]]
412
+
413
+ Rendering posts/new.html.erb within layouts/application
414
+
415
+ Rendered layouts/_error_message.html.erb (Duration: 0.4ms | Allocations: 236)
416
+
417
+ Rendered posts/new.html.erb within layouts/application (Duration: 17.5ms | Allocations: 2505)
418
+
419
+ [Webpacker] Everything's up-to-date. Nothing to do
420
+
421
+ Rendered layouts/_header.html.erb (Duration: 1.5ms | Allocations: 935)
422
+
423
+ Rendered layouts/_footer.html.erb (Duration: 0.1ms | Allocations: 5)
424
+
425
+ Completed 200 OK in 39ms (Views: 28.5ms | ActiveRecord: 0.1ms | Allocations: 13308)
426
+
427
+ ```