質問編集履歴

1

エラーログを追加

2020/06/16 05:30

投稿

mikannOishiii
mikannOishiii

スコア6

test CHANGED
File without changes
test CHANGED
@@ -16,17 +16,13 @@
16
16
 
17
17
  ```terminal
18
18
 
19
- expected `Post.count` to have changed by 1, but was changed by 0
20
-
21
- ...and:
22
-
23
- expected `Picture.count` to have changed by 1, but was changed by 0
24
-
25
- ```
26
-
27
- countされて欲しいのに、変化がないと返されてしまいます。
28
-
29
-
19
+ I, [2020-06-16T04:23:23.051589 #976] INFO -- : Parameters: {"post"=>{"title"=>"MyTitle", "content"=>"MyContent", "pictures_attributes"=>[{"name"=>[#<ActionDispatch::Http::UploadedFile:0x0000558e67b27a78 @tempfile=#<Tempfile:/tmp/RackMultipart20200616-976-olzaw.png>, @original_filename="testfile.png", @content_type="spec/support/testfile.png", @headers="Content-Disposition: form-data; name=\"post[pictures_attributes][][name][]\"; filename=\"testfile.png\"\r\nContent-Type: spec/support/testfile.png\r\nContent-Length: 15605\r\n">]}]}}
20
+
21
+ D, [2020-06-16T04:23:23.070685 #976] DEBUG -- : Unpermitted parameter: :name
22
+
23
+ ```
24
+
25
+ name カラムに許可されていないパラメータを含んでいるからエラーという意味???
30
26
 
31
27
 
32
28