On Fri, Jan 16, 2009 at 1:47 PM, Petr Bobek <[email protected]> wrote: > > Hi all, > > I am using partial: > <%= render :partial => 'post', :collection => @posts %> > > _post.rhtml > > <li> > <p class="date"><em><%= post.created_at %></em></p>
You can use the last method of Array to figure out if you're on the last post <% if post == @posts.last -%> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

