diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 2616463..92fe29a 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -32,12 +32,12 @@
<% @reviews.each do |review| %>
- - <%if @user.photo? %> - <%= cl_image_tag @user.photo, class: 'revavatar' %> + <% if review.user.photo %> + <%= cl_image_tag review.user.photo , class: 'revavatar' %> <% else %> - <%= image_tag "https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_1280.png" , class: 'revavatar'%> +- <%= image_tag "https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_1280.png", class: 'revavatar'%> <% end %> + <%# else %> <%# end %>