Sha256: 67543095803d9273f5d8ca529fd1b70d4a548b3bee0d3e9b7bba67b5f763a4fd
Contents?: true
Size: 458 Bytes
Versions: 21
Compression:
Stored size: 458 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", post_path(post), :method => 'delete') if guest_can?(:delete, post)
Version data entries
21 entries across 21 versions & 1 rubygems