(1)will_paginate 3.0.3
will_paginate provides a simple API for performing paginated queries with Active Record, DataMapper and Sequel, and includes helpers for rendering pagination links in Rails, Sinatra and Merb web apps.
<%=will_paginate@comments,:param_name=>:pagination%> 用于添加评论最后的索引
(2)在app/models/comment.rb中self.per_page用于修改每页的评论个数