Sha256: 89ba6e4f4d871430735db30af0cb1e25ea6f622da0e2bad323191c5a533a62cc
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 guest_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 guest_can?(:read, post) %td = link_to("Edit", edit_post_path(post)) if guest_can?(:edit, post) %td = link_to("Delete", delete_post_path(post)) if guest_can?(:delete, post)
Version data entries
23 entries across 22 versions & 1 rubygems