limit results in people#show to 15 posts

This commit is contained in:
maxwell 2011-01-25 14:21:15 -08:00
parent 6b12c55278
commit 75f08f8cb9

View file

@ -61,7 +61,7 @@ class PeopleController < ApplicationController
@commenting_disabled = false
end
@posts = current_user.posts_from(@person).where(:type => "StatusMessage").paginate :page => params[:page]
@posts = current_user.posts_from(@person).where(:type => "StatusMessage").paginate :per_page => 15, :page => params[:page]
@fakes = PostsFake.new(@posts)
respond_with @person, :locals => {:post_type => :all}