Link to the lesson I have problem with : https://www.codecademy.com/courses/learn-rails/lessons/many-to-many/exercises/many-to-many-movies-ii?action=resume_content_item
Task: in this part of the module:
<div class="movie">...</div>, display the movie’s image, title, release year, and plot.
<h2>Cast</h2>, iterate through each actor and display the image, first name, last name, and bio.
My show.html.erb code:
Error says : undefined method `name’ for nil:NilClass.
Somebody please tell me what am I doing wrong?