Problem with 3/5 Movies II


Link to the lesson I have problem with :

Task: in this part of the module:

  • In app/view/movies/show.html.erb

  • Inside <div class="movie">...</div> , display the movie’s image, title, release year, and plot.

  • Below <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?


Hi @dataplayer77767,

Are you still having this issue? If so, please run this command in your terminal and copy/paste the output here:

$ grep -rn '\.name' .


That’s what I got:

public/index.html:98: #about-content {color: #555}


Looks like it’s a bug with the exercise then, not something you did. Please report it through the form beneath the instructions on the left, then either reset the exercise and try to go through again, or submit it until it offers to give you the solution.