Sha256: bc60aa07ad8d111f9bb5126a9415a6b6c8f7dd6dc533e444deea620621ca37d6

Contents?: true

Size: 540 Bytes

Versions: 1

Compression:

Stored size: 540 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 #{concerto.title}", edit_concerto_path(concerto)) if user_can?(:edit, concerto)
      %td
        = link_to("Delete #{concerto.title}", delete_concerto_path(concerto)) if user_can?(:delete, concerto)

Version data entries

1 entries across 1 versions & 1 rubygems

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