summaryrefslogtreecommitdiff
path: root/app/views/users/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/users/index.html.erb')
-rw-r--r--app/views/users/index.html.erb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb
index 8b9056b..3692112 100644
--- a/app/views/users/index.html.erb
+++ b/app/views/users/index.html.erb
@@ -4,7 +4,8 @@
<thead>
<tr>
<th>Name</th>
- <th>Pw hash</th>
+ <th>Email</th>
+ <th>User name</th>
<th></th>
<th></th>
<th></th>
@@ -15,7 +16,8 @@
<% @users.each do |user| %>
<tr>
<td><%= user.name %></td>
- <td><%= user.pw_hash %></td>
+ <td><%= user.email %></td>
+ <td><%= user.user_name %></td>
<td><%= link_to 'Show', user %></td>
<td><%= link_to 'Edit', edit_user_path(user) %></td>
<td><%= link_to 'Destroy', user, method: :delete, data: { confirm: 'Are you sure?' } %></td>