summaryrefslogtreecommitdiff
path: root/app/views/users/index.html.erb
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-03-03 14:16:43 -0500
committerDavisLWebb <davislwebb@ymail.com>2014-03-03 14:16:43 -0500
commita034c6fff6aad728eae7d7056e8e538f58a0e0e7 (patch)
tree57bea566725608b63868254fb26ec715a36ab8b4 /app/views/users/index.html.erb
parent39e0c9ca280d16817eb8d7683d80788f2544ae5f (diff)
view stuff
Diffstat (limited to 'app/views/users/index.html.erb')
-rw-r--r--app/views/users/index.html.erb29
1 files changed, 29 insertions, 0 deletions
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb
new file mode 100644
index 0000000..8b9056b
--- /dev/null
+++ b/app/views/users/index.html.erb
@@ -0,0 +1,29 @@
+<h1>Listing users</h1>
+
+<table>
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Pw hash</th>
+ <th></th>
+ <th></th>
+ <th></th>
+ </tr>
+ </thead>
+
+ <tbody>
+ <% @users.each do |user| %>
+ <tr>
+ <td><%= user.name %></td>
+ <td><%= user.pw_hash %></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 %>
+ </tbody>
+</table>
+
+<br>
+
+<%= link_to 'New User', new_user_path %>