質問編集履歴
1
エラーの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -51,3 +51,39 @@
|
|
51
51
|
ArgumentError (wrong number of arguments (given 0, expected 1..2)):
|
52
52
|
|
53
53
|
このエラーが出ました。
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
```
|
58
|
+
|
59
|
+
Started PATCH "/api/users/2" for 127.0.0.1 at 2018-06-02 22:21:36 +0900
|
60
|
+
|
61
|
+
Processing by Api::UsersController#update as JSON
|
62
|
+
|
63
|
+
Parameters: {"{\n \"like_person_twitter_id\" "=>" \"3\"\n}", "id"=>"2"}
|
64
|
+
|
65
|
+
User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
|
66
|
+
|
67
|
+
↳ app/controllers/api/users_controller.rb:8
|
68
|
+
|
69
|
+
Completed 400 Bad Request in 22ms (ActiveRecord: 0.7ms)
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
ActionController::ParameterMissing (param is missing or the value is empty: user):
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
app/controllers/api/users_controller.rb:27:in `user_params'
|
82
|
+
|
83
|
+
app/controllers/api/users_controller.rb:9:in `update'
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
```
|
88
|
+
|
89
|
+
追記/今は上のようなエラーが出ています。
|