Sha256: cb7aeb6e7b0085751493ba9a2482325e9d5131745970f6b7213e76e00bfc904a

Contents?: true

Size: 453 Bytes

Versions: 21

Compression:

Stored size: 453 Bytes

Contents

%h1 Posts index
.buttons
  = link_to("New post", new_post_path) if user_can?(:create, Post)

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

  - posts.each do |post|
    %tr
      %td
        = link_to(post.title, post_path(post)) if user_can?(:read, post)
      %td
        = link_to("Edit", edit_post_path(post)) if user_can?(:edit, post)
      %td
        = link_to("Delete", post_path(post), :method => 'delete') if user_can?(:delete, post)

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
cantango-0.9.4.7 spec/dummy/app/views/posts/index.html.haml
cantango-0.9.4.6 spec/dummy/app/views/posts/index.html.haml
cantango-0.9.4.5 spec/dummy/app/views/posts/index.html.haml
cantango-0.9.4.3 spec/dummy/app/views/posts/index.html.haml
cantango-0.9.4.2 spec/dummy/app/views/posts/index.html.haml
cantango-0.9.4.1 spec/dummy/app/views/posts/index.html.haml
cantango-0.9.4 spec/dummy/app/views/posts/index.html.haml
cantango-0.9.3.2 spec/dummy/app/views/posts/index.html.haml
cantango-0.8.9.5 spec/dummy/app/views/posts/index.html.haml
cantango-0.8.9.4 spec/dummy/app/views/posts/index.html.haml
cantango-0.8.9.3 spec/dummy/app/views/posts/index.html.haml
cantango-0.8.9.2 spec/dummy/app/views/posts/index.html.haml
cantango-0.8.9.1 spec/dummy/app/views/posts/index.html.haml
cantango-0.8.9 spec/dummy/app/views/posts/index.html.haml
cantango-0.8.8.1 spec/dummy/app/views/posts/index.html.haml
cantango-0.8.8 spec/dummy/app/views/posts/index.html.haml
cantango-0.8.7 spec/dummy/app/views/posts/index.html.haml
cantango-0.8.6.2 spec/dummy/app/views/posts/index.html.haml
cantango-0.8.6.1 spec/dummy/app/views/posts/index.html.haml
cantango-0.8.6 spec/dummy/app/views/posts/index.html.haml