teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

誤字

2018/02/27 05:52

投稿

tamm
tamm

スコア11

title CHANGED
File without changes
body CHANGED
@@ -15,7 +15,7 @@
15
15
  class PostsController < InheritedResources::Base
16
16
 
17
17
  def index
18
- @microposts = Micropost.page(params[:page]).per(5)
18
+ @posts = Post.page(params[:page]).per(5)
19
19
  end
20
20
 
21
21
  end