Sha256: ef8bdafbf90694d3ed465a270df0a89fbe6880e4b388f89cfb17ba24a8799d95
Contents?: true
Size: 444 Bytes
Versions: 23
Compression:
Stored size: 444 Bytes
Contents
%h1 Posts index .buttons = link_to("New post", new_post_path) if admin_can?(:create, Post) %table %th %td View %td Edit %td Delete - posts.each do |post| %tr %td = link_to(post.title, post_path(post)) if admin_can?(:read, post) %td = link_to("Edit", edit_post_path(post)) if admin_can?(:edit, post) %td = link_to("Delete", delete_post_path(post)) if admin_can?(:delete, post)
Version data entries
23 entries across 22 versions & 1 rubygems