app/views/activities/_activities.html.erb in social_stream-0.3.1 vs app/views/activities/_activities.html.erb in social_stream-0.3.2
- old
+ new
@@ -10,10 +10,11 @@
</div>
<%= render :partial => 'activities/new', :locals => { :receiver => owner } %>
</div>
<div id="wall">
- <% if activities.any? %>
+ <% activities = activities.paginate(:page => params[:page]) %>
+ <%- # should be activities.paginate(:page => params[:page], :count => { :select => 'activity.id', :distinct => true }) but it is not working in Rails 3.0.3 -%>
<%= render activities %>
- <% end %>
+ <%= will_paginate activities %>
</div>
</div>