Can someone help me?


My code below

movies = { "titanic" => 7,
"pokemon" => 8,
"digimo" => 9

puts"Choose one of these\n\t"
puts"Hit add if you wanna 'add' a movie\t\n"
puts"if you wanna delete a movie hit 'delete'\t\n"
puts" Wanna update rating?\t\n"
puts"wanna display the movies? If so hit display"

choice = gets.downcase

choice = gets.chomp.downcase
case choice
when 'add'
puts "What movie do you want to add?"
title = gets.chomp
if movies[title].nil?
puts "What's the rating? (Type a number 0 to 4.)"
rating = gets.chomp
movies[title] = rating
puts "#{title} has been added with a rating of #{rating}."
puts "That movie already exists! Its rating is #{movies[title}."

Replace this line with your code.


You are missing an end keyword at the end of your case statement