Promting:Rudex


#1

It is very hard need help
it keeps saying that i
need to create a movie
hash when i already did.


#2

Hi can you post your code? So that we could help yo.


#3

movies = {
"the lion king" => 5
}
puts "What do you want to do? (add, update, display, delete)"
choice = gets.chomp

case choice
when "add"
puts "What movie would you like to add?"
title = gets.chomp
if movies[title].nil?
puts "enter your movie rating"
rating = gets.chomp
movies[title] = rating
puts "#{title} has been added with #{rating}"
else
"that movie already exists!"
when "update"
puts "updated"
when "display"
puts "Movies"
when "delete"
puts "Deleted"
else
puts "Jammer de bammer"
end