質問編集履歴
1
new の 1行目 @user = User.find(params[:id]) を削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -134,8 +134,6 @@
|
|
134
134
|
|
135
135
|
def new
|
136
136
|
|
137
|
-
@user = User.find(params[:id])
|
138
|
-
|
139
137
|
@post = Post.new(user_id: current_user)
|
140
138
|
|
141
139
|
end
|