From a034c6fff6aad728eae7d7056e8e538f58a0e0e7 Mon Sep 17 00:00:00 2001 From: DavisLWebb Date: Mon, 3 Mar 2014 14:16:43 -0500 Subject: view stuff --- app/views/users/index.html.erb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 app/views/users/index.html.erb (limited to 'app/views/users/index.html.erb') 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 @@ +

Listing users

+ + + + + + + + + + + + + + <% @users.each do |user| %> + + + + + + + + <% end %> + +
NamePw hash
<%= user.name %><%= user.pw_hash %><%= link_to 'Show', user %><%= link_to 'Edit', edit_user_path(user) %><%= link_to 'Destroy', user, method: :delete, data: { confirm: 'Are you sure?' } %>
+ +
+ +<%= link_to 'New User', new_user_path %> -- cgit v1.2.3-2-g168b