Sha256: 7c553d18e64efec2ecd57aa5467a9a227088703b8b8e07fb42516dd4c2875b86
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 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", post_path(post), :method => 'delete') if admin_can?(:delete, post)
Version data entries
21 entries across 21 versions & 1 rubygems