You have kinda bad explanation here


In the Update lesson section you have an instruction:

if the movies[title] is nil, then the movie is not in the hash. Please puts a string telling the user of their error.

But for real you should use movies[title.to_sym], because our titles are storet as symbols.

Of course you can do title = gets.chomp.to_sym but in previous lesson you say:

If the movie isn't already in the hash (that is, if movies[title.to_sym] is nil)
so it may be confusing for newbies.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.