Complete Lesson 37 Part 1

main
Simon Quigley 1 year ago
parent 6f95e3b3dc
commit e8e6b38b3e

@ -26,4 +26,12 @@
</div> </div>
<% end %> <% end %>
<% end %> <% end %>
<% if @favorite_movies.present? %>
<h3>Favorite Movies</h3>
<div class="favorite-movies">
<% @favorite_movies.each do |movie| %>
<%= link_to image_tag(movie.image_file_name), movie %>
<% end %>
</div>
<% end %>
</section> </section>

Loading…
Cancel
Save