[#, # ] <% for blog in @blogs %> <% lastcomment = blog.comments(:first, :order => "updated_at DESC") %> <%= lastcomment.inspect %> <% end %>
Pastie
Support Pastie
or read my
Pastie << self
blog
[#, # ] <% for blog in @blogs %> <% lastcomment = blog.comments(:first, :order => "updated_at DESC") %> <%= lastcomment.inspect %> <% end %>