Sha256: eeedd2e97381c7fb2e45813c8ed643ba604df92e3751b538d9c1da734427d74e

Contents?: true

Size: 679 Bytes

Versions: 2

Compression:

Stored size: 679 Bytes

Contents

%h1 Articles index
.buttons
  = link_to("New article", new_article_path) if user_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 user_can?(:read, article)
      %td
        = link_to("Edit", edit_article_path(article)) if user_can?(:edit, article)
      %td
        = link_to("Delete", delete_article_path(article)) if user_can?(:delete, article)

<!-- some dirty tricks to test caching -->
<%= "Cached the rules!" if current_ability.cached_rules === current_ability.rules %>
<%= "Using cached rules: #{ current_ability.rules_cached? } %>

Version data entries

2 entries across 1 versions & 1 rubygems

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