blog_index.html.erb (530B)
1 <div class="ewin"> 2 <table> 3 <tr> 4 <th><a href="/">Name</a></th> 5 <th>Created</th> 6 <th>Last Updated</th> 7 </tr> 8 <% @posts.sort_by(&:created_at).reverse.each do |post| %> 9 <tr> 10 <th> 11 <a href="/posts/<%= post.url %>"> 12 <%= post.title %> 13 </a> 14 </th> 15 <th> 16 <%= post.created_at.strftime("%Y %b %d") %> 17 </th> 18 <th> 19 <%= post.updated_at.strftime("%Y %b %d") %> 20 </th> 21 </tr> 22 <% end %> 23 </table> 24 </div>