app/views/users/index.html.haml
%h1 Listing users
%table
%tr
%th Name
%th Email
%th
%th
%th
- @users.each do |user|
%tr
%td= user.name
%td= user.email
%td= link_to 'Show', user
%td= link_to 'Edit', edit_user_path(user)
%td= link_to 'Destroy', user, data: {confirm: 'Are you sure?'},
:method => :delete
%br
= link_to 'New User', new_user_path