Sha256: cbb0b7231bb9d388381d2b93e02b52e6d0325c066f5c40efd6340e0922ab4367

Contents?: true

Size: 503 Bytes

Versions: 42

Compression:

Stored size: 503 Bytes

Contents

%h1 Comments index
.buttons
  = link_to("New comment", new_comment_path) if guest_can?(:create, Comment)

%table
  %th
    %td View
    %td Edit
    %td Delete

  - comments.each do |comment|
    %tr
      %td
        = link_to(comment.title, comment_path(comment)) if guest_can?(:read, comment)
      %td
        = link_to("Edit", edit_comment_path(comment)) if guest_can?(:edit, comment)
      %td
        = link_to("Delete", comment_path(post), :method => 'delete') if guest_can?(:delete, comment)


Version data entries

42 entries across 21 versions & 1 rubygems

Version Path
cantango-0.8.5.1 spec/dummy/app/views/comments/guest.html.haml
cantango-0.8.5.1 spec/devise-dummy/app/views/comments/guest.html.haml