<% articles.each do |article| %> <% end %>
Title Category Date Author Cmts.
<%= namelink article, 35 %> <%= namelink article.category %> <%= shortdate article.created_at %> <%= namelink article.user %> <%= h article.comments.count %> <% if article.can_update? cuser %> <%= link_to 'Edit', edit_article_path(article) %> <% end; if article.can_destroy? cuser %> <%= link_to 'Destroy', article, :confirm => 'Are you sure?', :method => :delete %> <% end %>