Profiles

<% @profiles.each do |profile| %> <% if current_user %> <% end %> <% end %>
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) %><%= link_to 'Edit', edit_profile_path(profile) %>