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

Version Path
cantango-0.9.4.7 spec/dummy/app/views/posts/guest.html.haml
cantango-0.9.4.6 spec/dummy/app/views/posts/guest.html.haml
cantango-0.9.4.5 spec/dummy/app/views/posts/guest.html.haml
cantango-0.9.4.3 spec/dummy/app/views/posts/guest.html.haml
cantango-0.9.4.2 spec/dummy/app/views/posts/guest.html.haml
cantango-0.9.4.1 spec/dummy/app/views/posts/guest.html.haml
cantango-0.9.4 spec/dummy/app/views/posts/guest.html.haml
cantango-0.9.3.2 spec/dummy/app/views/posts/guest.html.haml
cantango-0.8.9.5 spec/dummy/app/views/posts/guest.html.haml
cantango-0.8.9.4 spec/dummy/app/views/posts/guest.html.haml
cantango-0.8.9.3 spec/dummy/app/views/posts/guest.html.haml
cantango-0.8.9.2 spec/dummy/app/views/posts/guest.html.haml
cantango-0.8.9.1 spec/dummy/app/views/posts/guest.html.haml
cantango-0.8.9 spec/dummy/app/views/posts/guest.html.haml
cantango-0.8.8.1 spec/dummy/app/views/posts/guest.html.haml
cantango-0.8.8 spec/dummy/app/views/posts/guest.html.haml
cantango-0.8.7 spec/dummy/app/views/posts/guest.html.haml
cantango-0.8.6.2 spec/dummy/app/views/posts/guest.html.haml
cantango-0.8.6.1 spec/dummy/app/views/posts/guest.html.haml
cantango-0.8.6 spec/dummy/app/views/posts/guest.html.haml