From 728633b1a46353496f7dd3c58ba5ba2e6fd11691 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Sun, 22 Nov 2009 17:21:36 +1100 Subject: [PATCH] Show ten most recent article titles at / --- layouts/listing.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/listing.html b/layouts/listing.html index 53b0753..ccbb7dd 100644 --- a/layouts/listing.html +++ b/layouts/listing.html @@ -11,8 +11,8 @@ <%= render 'header' %>
- <% sorted_articles.each do |article| %> -

<%= article.title %>

+ <% sorted_articles[0..9].each do |article| %> +

<%= article.attributes[:title] %>

<% end %>
<%= render 'footer' %>