質問編集履歴
2
表示を変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -33,6 +33,8 @@
|
|
33
33
|
api_1 | app/controllers/api/v1/posts_controller.rb:39:in `content_params'
|
34
34
|
|
35
35
|
api_1 | app/controllers/api/v1/posts_controller.rb:24:in `update'
|
36
|
+
|
37
|
+
```
|
36
38
|
|
37
39
|
|
38
40
|
|
1
サーバーに送られたデータを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,15 +10,29 @@
|
|
10
10
|
|
11
11
|
```
|
12
12
|
|
13
|
+
api_1 | Processing by Api::V1::PostsController#update as HTML
|
14
|
+
|
15
|
+
api_1 | Parameters: {"post"=>[{"content"=>"追加でテストします", "status"=>false}], "id"=>"16"}
|
16
|
+
|
17
|
+
api_1 | Post Load (7.7ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = $1 LIMIT $2 [["id", 16], ["LIMIT", 1]]
|
18
|
+
|
19
|
+
api_1 | ↳ app/controllers/api/v1/posts_controller.rb:23:in `update'
|
20
|
+
|
21
|
+
api_1 | Completed 500 Internal Server Error in 114ms (ActiveRecord: 71.3ms | Allocations: 7456)
|
22
|
+
|
23
|
+
api_1 |
|
24
|
+
|
25
|
+
api_1 |
|
26
|
+
|
27
|
+
api_1 |
|
28
|
+
|
13
|
-
api_1 | NoMethodError (undefined method `permit' for #<Array:0x000056147c
|
29
|
+
api_1 | NoMethodError (undefined method `permit' for #<Array:0x000056147d1e7c00>):
|
14
30
|
|
15
31
|
api_1 |
|
16
32
|
|
17
33
|
api_1 | app/controllers/api/v1/posts_controller.rb:39:in `content_params'
|
18
34
|
|
19
35
|
api_1 | app/controllers/api/v1/posts_controller.rb:24:in `update'
|
20
|
-
|
21
|
-
```
|
22
36
|
|
23
37
|
|
24
38
|
|