回答編集履歴

2

サンプルコードを元に戻した

2021/09/22 11:55

投稿

shinoharat
shinoharat

スコア1676

test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  エラーの解釈も対処方もそれで合っているはずですが・・・
6
6
 
7
- 以下のように、URLヘルパーに `team` と `apply` のインスタンスを渡してもエラーになるでしょうか?
7
+ 以下のように、第一引数に `apply` のインスタンスを渡してもエラーになるでしょうか?
8
8
 
9
9
 
10
10
 
@@ -12,6 +12,8 @@
12
12
 
13
13
  - team_approfe_path(user_id: apply.user_id, team_id: apply.team_id)
14
14
 
15
- + team_approfe_path(apply.team, apply, user_id: apply.user_id)
15
+ + team_approfe_path(apply, user_id: apply.user_id, team_id: apply.team_id)
16
+
17
+
16
18
 
17
19
  ```

1

URLヘルパー修正

2021/09/22 11:55

投稿

shinoharat
shinoharat

スコア1676

test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  エラーの解釈も対処方もそれで合っているはずですが・・・
6
6
 
7
- 以下のように、URLヘルパーの第一引数に `apply` を渡してもエラーになるでしょうか?
7
+ 以下のように、URLヘルパーに `team` と `apply` のインスタンスを渡してもエラーになるでしょうか?
8
8
 
9
9
 
10
10
 
@@ -12,6 +12,6 @@
12
12
 
13
13
  - team_approfe_path(user_id: apply.user_id, team_id: apply.team_id)
14
14
 
15
- + team_approfe_path(apply, user_id: apply.user_id, team_id: apply.team_id)
15
+ + team_approfe_path(apply.team, apply, user_id: apply.user_id)
16
16
 
17
17
  ```