Prompting: Redux!


movies = {
carmen: 3,
car: 1,


puts "Do you like coding?"
"-- yes"
choice = gets.chomp

case choice
when "add"
puts "title of movie"
title = gets.chomp
puts "rate the move"
rating = gets.chomp
when "update"
puts "updated"
when "deleted!"
puts "deleted!"

"Looks like you didn't add the movie hash!"

Can you be so kind as to point out what I am missing? Thanks in advance.... :slight_smile:


Is it supposed to be named movie or movies?
Does ruby crash? If so, it won't have created the hash, right.


movies hash, my mistake.



That's what you've already got in your code though.

No idea if you solved it, and if you didn't, I've got nothing to go by. Looks like what you need to do is to read the instructions more carefully, I can't do that though, not knowing which exercise it is, or at least not how to access it since I have no link and don't know where it is.

edit oh ok. that's a bit more to go by.

Well, it asks you if you've done something, and it doesn't look like you have.


"Add that movie/rating pair to the movies hash and puts a message indicating the pair was added. (No need for to_sym or to_i just yet!)"

Stuck on this part.


Perhaps you'd like to ask for some piece of information that lets you move on.

Just saying that you're stuck doesn't really say much about what you need.


Can anyone help me out here?