Sha256: e852d1822cd0c7207b74b94ceb6095d1622aca4405e8f92e5a571b2d8e613def

Contents?: true

Size: 439 Bytes

Versions: 2

Compression:

Stored size: 439 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", delete_user_path(user)) if user_can?(:delete, user)

Version data entries

2 entries across 1 versions & 1 rubygems

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