Prompting: Redux!


#1

Continuing the discussion from Prompting redux:

Look back at (1/10)

https://www.codecademy.com/en/courses/ruby-beginner-en-0i8v1/0/1?curriculum_id=5059f8619189a5000201fbcb


#2

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:

movies[title]=rating


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.


#3

@southern_binary The first snip was just an example


#4

Change the:

case movies
to:
case choice.