%h1 Articles index .buttons = link_to("New article", new_article_path) if guest_can?(:create, Article) %table %th %td View %td Edit %td Delete - articles.each do |article| %tr %td = link_to(article.title, article_path(article)) if guest_can?(:read, article) %td = link_to("Edit", edit_article_path(article)) if guest_can?(:edit, article) %td = link_to("Delete", article_path(article), :method => 'delete') if guest_can?(:delete, article)