1
0
Fork 0
forked from wezm/wezm.net

Show ten most recent article titles at /

This commit is contained in:
Wesley Moore 2009-11-22 17:21:36 +11:00
parent 493678c336
commit 728633b1a4

View file

@ -11,8 +11,8 @@
<body>
<%= render 'header' %>
<div id="main">
<% sorted_articles.each do |article| %>
<h1><%= article.title %></h1>
<% sorted_articles[0..9].each do |article| %>
<h1><%= article.attributes[:title] %></h1>
<% end %>
</div>
<%= render 'footer' %>