songtianlun
cf76756f55
- Implement users index action in UsersController - Create view for displaying all users with gravatar - Update header to link to users index - Add styles for user list display This commit introduces a new feature that allows logged-in users to view a list of all registered users. It includes necessary controller actions, view templates, and styling to improve the user interface.
12 lines
219 B
Plaintext
12 lines
219 B
Plaintext
<% provide(:title, 'All users') %>
|
|
|
|
<h1>All users</h1>
|
|
|
|
<ul class="users">
|
|
<% @users.each do |user| %>
|
|
<li>
|
|
<%= gravatar_for user, size: 50 %>
|
|
<%= link_to user.name, user %>
|
|
</li>
|
|
<% end %>
|
|
</ul> |