Prompting: Redux!


Continuing the discussion from Prompting redux:

Look back at (1/10)


The only thing I see that looks slightly off is spacing.
This is the code that worked for me.

when "add"
puts "Enter title"
title = gets.chomp
puts "Enter rating"
rating = gets.chomp
movies[title] = rating
puts "Movie added"

If you look close you'll see that the only big difference is that you have:


spaced slightly left of the other code, and also I have some extra space

movies[title] = rating

I'm not sure if the spacing is important in the Ruby interpreter, or if just the way that this course is written. Hopefully this helps.


@southern_binary The first snip was just an example


Change the:

case movies
case choice.