質問編集履歴
1
エラーメッセージが不足していたため加筆
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,11 +14,33 @@
|
|
14
14
|
|
15
15
|
### エラーメッセージ
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
ArgumentError
|
20
|
-
|
21
|
-
|
17
|
+
|
18
|
+
|
19
|
+
ArgumentError in ActorsController#edit
|
20
|
+
|
21
|
+
wrong number of arguments (given 0, expected 1..2)
|
22
|
+
|
23
|
+
Extracted source (around line #14):
|
24
|
+
|
25
|
+
```
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
def initialize(user, params = {}, actor: '')
|
32
|
+
|
33
|
+
@actor_nextprogram ||= ActorNextprogram.new
|
34
|
+
|
35
|
+
@actor_nextprogram.assign_attributes({comment: params[:comment], user_id: params[:user_id], schedule: params[:schedule], show: params[:show], stage: params[:stage], author: params[:author], actor_id: params[:actor_id]})
|
36
|
+
|
37
|
+
super(params)
|
38
|
+
|
39
|
+
```
|
40
|
+
|
41
|
+
def initialize(user, params = {}, actor: '')
|
42
|
+
|
43
|
+
がエラーになっている14行目です。
|
22
44
|
|
23
45
|
|
24
46
|
|