Feng -- The minifeed partial (_minifeed.html.erb) renders the listing of activities by passing the appropriate collection object to the minifeed_item partial (_minifeed_item.html.erb). The minifeed_item partial is called for each item in the minifeed collection (which is why it is called minifeed_item).
Are you running the latest version of Insoshi? The latest version uses "current_person.feed" and "minifeed_item.person" instead of "current_user.feed" and "minifeed_item.user." Unless you've intentionally changed those, you may be working with bits and pieces from different versions. On Jul 30, 5:56 am, feng <[email protected]> wrote: > now , i can right to run insoshi, but i hava a code problem in this > file > views/shared/_minifeed_item.html.erb codes sa follows: > > <%- unless minifeed_item.item.nil? -%> > <li> > <div class="profile-image"> > <%= image_link minifeed_item.user %> > </div> > <p><%= minifeed_message minifeed_item %></p> > <p class="meta published"> > <%= time_ago_in_words minifeed_item.created_at %> ago > </p> > </li> > <%- end -%> > > call this file in > views/shared/_minifeed.html.erb codes as follows: > > <div class="minifeed"> > <h2>Minifeed</h2> > <ul class="list activity small"> > <%- if logged_in? -%> > <%= render :partial => 'shared/minifeed_item', > :collection => current_user.feed %> > <%- else -%> > <%= render :partial => 'shared/minifeed_item', > :collection => Activity.global_feed %> > <%- end -%> > </ul> > </div> > > i dot know why name is minifeed_item , it is what? comes from where? > or based on what? --~--~---------~--~----~------------~-------~--~----~ Insoshi developer site: http://dogfood.insoshi.com/ Insoshi documentation: http://docs.insoshi.com/ You received this message because you are subscribed to the Google Groups "Insoshi" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/insoshi?hl=en -~----------~----~----~----~------~----~------~--~---
