回答編集履歴

1

viewの追加

2020/06/19 12:17

投稿

asm
asm

スコア15147

test CHANGED
@@ -28,7 +28,7 @@
28
28
 
29
29
  def join
30
30
 
31
- @group = Group.find(:id)
31
+ @group = Group.find(params[:id])
32
32
 
33
33
  @group.users << current_user
34
34
 
@@ -39,3 +39,11 @@
39
39
  end
40
40
 
41
41
  ```
42
+
43
+
44
+
45
+ ```erb
46
+
47
+ <%= link_to "参加する", join_group_path(group) %>
48
+
49
+ ```