paginate blog comments; fix length/site on AR objects
This commit is contained in:
@@ -9,6 +9,7 @@ class BlogpostsController < ApplicationController
|
||||
|
||||
def show
|
||||
@comment = Comment.new(blogpost: @post)
|
||||
@comments = @post.comments.page(params[:page])
|
||||
end
|
||||
|
||||
def new
|
||||
|
||||
Reference in New Issue
Block a user