| Name | Avatar | Actions | |
|---|---|---|---|
| | <%= profile.name %> |
<% if profile.avatar_image.attached? %>
<%= image_tag profile.avatar_image, alt: "#{profile.name}'s avatar", width: "50", height: "50" %>
<% else %>
No avatar image available. <% end %> |
<%= link_to 'Show', profile_path(profile) %> | <% if current_user %><%= link_to 'Edit', edit_profile_path(profile) %> | <% end %> <% end %>