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