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

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