Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
add link to each user
Browse files Browse the repository at this point in the history
  • Loading branch information
edikle committed Jan 31, 2018
1 parent 0eb05d8 commit a2cf78a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/views/users/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@
<table>
<tr>
<th>Name</th>
<th>Role</th>
</tr>
<% @users.each do |user| %>
<tr>
<td><%= user.name %></td>
<td><%= link_to user.name, user_path(user) %></td>
</tr>
<tr>
<td>
<%= user.role %>
</td>
</tr>
<% end %>
</table>

0 comments on commit a2cf78a

Please sign in to comment.