Sha256: d95a399ede23fcaa7c518a2e667db92d34e0ff8b3a90987dc7f6544f5b8d45b5

Contents?: true

Size: 453 Bytes

Versions: 42

Compression:

Stored size: 453 Bytes

Contents

%h1 Users index
.buttons
  = link_to("New user", new_user_path) if user_can?(:create, User)

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

  - users.each do |user|
    %tr
      %td
        = link_to(user.title, user_path(user)) if user_can?(:read, user)
      %td
        = link_to("Edit", edit_user_path(user)) if user_can?(:edit, user)
      %td
        = link_to("Delete", user_path(user), :method => 'delete') if user_can?(:delete, user)

Version data entries

42 entries across 21 versions & 1 rubygems

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