質問編集履歴
1
エラーログを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,17 +16,13 @@
|
|
16
16
|
|
17
17
|
```terminal
|
18
18
|
|
19
|
-
e
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
|