A Night at the Movies: Passing Code Error [Bug]


#1

I put in this code for lesson 4: Prompting: Redux!... and got an error. However, Codecademy still passed my code, yet the error was there. I have only ever seen a bug like this one other time, so I don't know what I do in this situation. Hence, me going here to tell the Codecademy coders about it.

CODE:

movies = {
Something_Awful: 0,
Movie_Title: title,
Movie_Rating: rating
}

puts "Type something."
choice = gets.chomp.upcase

case choice

when "add"
puts "Insert a movie title"
title = gets.chomp
puts "What is the movie's rating?"
rating = gets.chomp
puts "Movie name and rating has been added to movies"

when "update"
puts "Updated!"

when "delete"
puts "Deleted!"

else
puts "Error!"
end


Error Message:

undefined local variable or method `title' for #


#2

my code
movies_hash = {
:movie1 => 1,
:drĂ¡cula => 2,
:matrix =>3
}
because don`t work the message is did you cal la variable named movies