diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 8262f52..feb4824 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -26,4 +26,12 @@ <% end %> <% end %> + <% if @favorite_movies.present? %> +

Favorite Movies

+
+ <% @favorite_movies.each do |movie| %> + <%= link_to image_tag(movie.image_file_name), movie %> + <% end %> +
+ <% end %>