From e8e6b38b3e8dd9890e626ac4e7bbc9751c195676 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Wed, 27 Sep 2023 07:48:28 -0500 Subject: [PATCH] Complete Lesson 37 Part 1 --- app/views/users/show.html.erb | 8 ++++++++ 1 file changed, 8 insertions(+) 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 %>