Sha256: 90dfa770559e119e4ac83c6bfce8c93c8cfa9bd67f674c90167c04cd46e55f52

Contents?: true

Size: 492 Bytes

Versions: 4

Compression:

Stored size: 492 Bytes

Contents

%h1 Articles index
.buttons
  = link_to("New article", new_article_path) if guest_can?(:create, Article)

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

  - articles.each do |article|
    %tr
      %td
        = link_to(article.title, article_path(article)) if guest_can?(:read, article)
      %td
        = link_to("Edit", edit_article_path(article)) if guest_can?(:edit, article)
      %td
        = link_to("Delete", delete_article_path(article)) if guest_can?(:delete, article)


Version data entries

4 entries across 1 versions & 1 rubygems

Version Path
cantango-0.8.0 spec/devise-dummy/app/views/articles/guest.html.haml
cantango-0.8.0 spec/devise-dummy/app/views/concertos/guest.html.haml
cantango-0.8.0 spec/dummy/app/views/articles/guest.html.haml
cantango-0.8.0 spec/dummy/app/views/concertos/guest.html.haml