Sha256: c1c712ad295c07fc82b9c89ca7d842a61d7dc1e475778268195209e11299a4b5

Contents?: true

Size: 518 Bytes

Versions: 21

Compression:

Stored size: 518 Bytes

Contents

%h1 Concertos index
.buttons
  = link_to("New concerto", new_concerto_path) if user_can?(:create, Concerto)

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

  - concertos.each do |concerto|
    %tr
      %td
        = link_to(concerto.title, concerto_path(concerto)) #if user_can?(:read, concerto)
      %td
        = link_to("Edit", edit_concerto_path(concerto)) if user_can?(:edit, concerto)
      %td
        = link_to("Delete", concerto_path(concerto), :method => 'delete') if user_can?(:delete, concerto)

Version data entries

21 entries across 21 versions & 1 rubygems

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