Sha256: 561a5eb3d774a0439afe6fb01e3fde0c8354ec51972f7a2eb43f7e70e64a7b0a

Contents?: true

Size: 693 Bytes

Versions: 42

Compression:

Stored size: 693 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", article_path(article), :method => 'delete') 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

42 entries across 21 versions & 1 rubygems

Version Path
cantango-0.9.4.7 spec/dummy/app/views/articles/index.html.haml
cantango-0.9.4.7 spec/devise-dummy/app/views/articles/index.html.haml
cantango-0.9.4.6 spec/dummy/app/views/articles/index.html.haml
cantango-0.9.4.6 spec/devise-dummy/app/views/articles/index.html.haml
cantango-0.9.4.5 spec/dummy/app/views/articles/index.html.haml
cantango-0.9.4.5 spec/devise-dummy/app/views/articles/index.html.haml
cantango-0.9.4.3 spec/devise-dummy/app/views/articles/index.html.haml
cantango-0.9.4.3 spec/dummy/app/views/articles/index.html.haml
cantango-0.9.4.2 spec/dummy/app/views/articles/index.html.haml
cantango-0.9.4.2 spec/devise-dummy/app/views/articles/index.html.haml
cantango-0.9.4.1 spec/dummy/app/views/articles/index.html.haml
cantango-0.9.4.1 spec/devise-dummy/app/views/articles/index.html.haml
cantango-0.9.4 spec/devise-dummy/app/views/articles/index.html.haml
cantango-0.9.4 spec/dummy/app/views/articles/index.html.haml
cantango-0.9.3.2 spec/devise-dummy/app/views/articles/index.html.haml
cantango-0.9.3.2 spec/dummy/app/views/articles/index.html.haml
cantango-0.8.9.5 spec/devise-dummy/app/views/articles/index.html.haml
cantango-0.8.9.5 spec/dummy/app/views/articles/index.html.haml
cantango-0.8.9.4 spec/devise-dummy/app/views/articles/index.html.haml
cantango-0.8.9.4 spec/dummy/app/views/articles/index.html.haml