app/views/as_user/users/index.html.erb in as_user-0.0.2 vs app/views/as_user/users/index.html.erb in as_user-0.0.3
- old
+ new
@@ -1,27 +1,22 @@
-<h1>Listing users</h1>
+<h1>users</h1>
<table>
<tr>
+ <th>Id</th>
<th>Email</th>
<th>Name</th>
- <th>Password digest</th>
- <th></th>
- <th></th>
- <th></th>
</tr>
<% @users.each do |user| %>
<tr>
- <td><%= user.email %></td>
+ <td><%= user.id %></td>
+ <td><%= "***" || user.email %></td>
<td><%= user.name %></td>
- <td><%= user.password_digest %></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>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New User', new_user_path %>
+<%= link_to 'Signin', signin_path %>