I've looked at Youtube and I can't see where I went wrong


#1


A night at the movies - Prompting Redux!

It looks like you didn't add to the movies hash!


movies = {'Home Alone 2' => 10}
puts "Some user input"
choice= gets.chomp

case choice 
when "add"
    puts "Please. give me a movie title"
    title = gets.chomp 
    puts "Please, give me a rating"
    rating = gets.chomp
    movies[title]= rating
    puts "Thank you, the movie was added!"
    
when "update"
    puts "Updated!"
when "display" 
    puts "Movies!" 
when "delete"
    puts "Deleted!"
else
    puts "Error!"
end


#2

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