4. View Error Code


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.


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: