Link to posts on the front page

This commit is contained in:
Wesley Moore 2009-11-22 17:24:57 +11:00
parent 728633b1a4
commit 99fbc65ce8

View file

@ -12,7 +12,7 @@
<%= render 'header' %> <%= render 'header' %>
<div id="main"> <div id="main">
<% sorted_articles[0..9].each do |article| %> <% sorted_articles[0..9].each do |article| %>
<h1><%= article.attributes[:title] %></h1> <h1><a href="<%= article.reps.first.path %>"><%= article[:title] %></a></h1>
<% end %> <% end %>
</div> </div>
<%= render 'footer' %> <%= render 'footer' %>