@activities is set in activities_controller, line #9. (Please note that this action can only be accessed by the current user, so you can't look at another user's network activities).
Regarding your error: I can't reproduce it locally, and my tests pass. Please check your tests, specifically, make sure that activities_controller_test.rb runs without errors before submitting this as a bug. Thanks, Bruno On Tue, Nov 10, 2009 at 7:00 PM, Jim Ruther Nill <[email protected]> wrote: > how is @activities declared? > > > On Wed, Nov 11, 2009 at 6:58 AM, GregL <[email protected]> wrote: > >> I found out that to visit a page with the user's in-network activity >> (as opposed to all activity), you can go to >> >> network_user_activities_path(@user) >> >> but I get an error visiting said page (which comes out to /<username>/ >> activities/network): >> >> ActionView::TemplateError (undefined method `page_count' for #<Array: >> 0x105891ad8>) on line #10 of vendor/plugins/community_engine/app/views/ >> activities/network.html.haml: >> 7: %h3=:activity_from_your_network.l >> 8: %table{:width => "100%"} >> 9: =render :partial => "activities/activity", :collection => >> @activities >> 10: -if @activities.page_count > 1 >> 11: .pagination= paginating_links >> @activities, :link_to_current_page => true >> 12: -else >> 13: =:you_have_no_network_activity_yet.l >> >> It looks like it expects the array of activities to be a pagination >> object. I'm not familiar with the pagination system, any ideas how to >> fix it? >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "CommunityEngine" group. >> To post to this group, send email to [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/communityengine?hl=. >> >> >> > > > -- > "We do not believe in ourselves until someone reveals that deep inside us > is valuable, worth listening to, worthy of our trust, sacred to our touch." > - E. E. Cummings > > -- > You received this message because you are subscribed to the Google Groups > "CommunityEngine" group. > To post to this group, send email to [email protected]. > For more options, visit this group at > http://groups.google.com/group/communityengine?hl=. > -- You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/communityengine?hl=.
