Sha256: c9f784e99f75574d713a99423b2dbd481c59ed18b0c9beb1a89bf7c798e367d7
Contents?: true
Size: 662 Bytes
Versions: 21
Compression:
Stored size: 662 Bytes
Contents
div.page-header h1 Listing users table.table.table-striped thead tr th ID th Email th Name th Actions tbody - @users.each do |user| tr td= link_to_if can?(:show, user), user.id, user_path(user) td= user.email td= user.name td - if can? :edit, user = link_to 'Edit', edit_user_path(user), class: 'btn btn-mini' ' - if can? :destroy, user = link_to 'Destroy', user_path(user), method: :delete, data: { confirm: "Are you sure?" }, class: 'btn btn-mini btn-danger' - if can? :create, User = link_to 'New User', new_user_path, class: 'btn btn-primary'
Version data entries
21 entries across 21 versions & 1 rubygems