diff options
author | Tomer Kimia <tkimia@purdue.edu> | 2014-03-03 19:00:25 -0500 |
---|---|---|
committer | Tomer Kimia <tkimia@purdue.edu> | 2014-03-03 19:00:25 -0500 |
commit | fb8aedbf8f39c627e6537c567f030b389cfb3cfb (patch) | |
tree | 714e1a5294f839c4a5c22195e5f4685af847f6a8 /app/views/users/index.html.erb | |
parent | 38c41dc461244832d739b755e073989c61dacf47 (diff) | |
parent | cd69a777235e96266d4ed101ef22de7ed1308dd5 (diff) |
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/views/users/index.html.erb')
-rw-r--r-- | app/views/users/index.html.erb | 29 |
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 %> |