Prompting: Redux!


here is the link to my excersize i'm stuck on

I am getting an error code, showing as
"Oops, try again. It looks like you didn't add to the movies hash!"

My code:
movies = {
  Home: 4,
  Underdog: 4,
  Deadpool: 4

case choice
when "add"
 puts "Enter a title"
title = gets.chomp
puts "Enter a rating"
rating = gets.chomp
rating = {}
rating["one"] = 1
puts 3 + rating["one"]
# prints out "rating"
when "update"
  puts "Updated!"
when "display"
  puts "Displayed!"
when "delete"
  puts "Deleted!"
  puts "Error!"


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