質問編集履歴

1

質問内容の修正

2019/10/28 05:30

投稿

bok_sakai
bok_sakai

スコア20

test CHANGED
File without changes
test CHANGED
@@ -31,6 +31,10 @@
31
31
  ```Ruby
32
32
 
33
33
  class RelationshipsController < ApplicationController
34
+
35
+
36
+
37
+ before_action :set_user
34
38
 
35
39
 
36
40
 
@@ -88,7 +92,7 @@
88
92
 
89
93
  def set_user
90
94
 
91
- @user = User.find(params[:relationship][:follow_id])
95
+ @user = User.find(params[:relationship][:follow_id]) #←エラーが出る行
92
96
 
93
97
  end
94
98