4. View Error Code


#1

I completed this lesson, but when I visit the webpage, this error message comes up:

undefined method 'each' for nil:NilClass

I'm not sure what to do, and I would like to get this one solved before I continue.


#2

Post your code....

It's probably something like:

<% moves.each do |movie| %>  //Notice 'moves' instead of 'movies'

Where you called .each on something misspelled or undefined. :slight_smile: