質問編集履歴

1

修正

2019/12/06 09:07

投稿

yupapapa
yupapapa

スコア24

test CHANGED
File without changes
test CHANGED
@@ -40,7 +40,7 @@
40
40
 
41
41
  def show
42
42
 
43
- @post = Post.find(params[:id])
43
+ @post = Post.find_by(id: params[:id])
44
44
 
45
45
  end
46
46