9/10 stuck


#1

my code is:
movies = {
Gardians_of_the_Galaxy: 10,

}
puts "what do you wantto do?"
puts "-- Type 'add' to add a movie."
puts "-- Type 'update' to update a movie."
puts "-- Type 'display' to display all movies."
puts "-- Type 'delete' to delete a movie."

choice = gets.chomp
case choice
when "add"
puts "what movie do you like?"
title = gets.chomp
if movies[title.to_sym].nil?
puts "what would you rate this movie with a number 1 to 4"
rating = gets.chomp
movies[title.to_sym]= rating.to_i
puts "your #{title} and #{rating} were added, thanks!"
else
puts "we already have this movie listed!"
end
when "update"
puts "what movie do you like?"
title = gets.chomp
if movies[title.to_sym].nil?
puts "movie updated"
else
puts "we already have this movie listed!"
rating = gets.chomp
movies[title.to_sym] = rating.to_i
puts "#{title} has been updated!"
end
when "display"
movies.each do |movie, rating|
puts "#{movie}: #{rating}"
end
when "delete"
puts "delete which movie?"
title = get.chomp
if movies[title.to_sym].nil?
puts "Error!"
else
movies.delete(title.to_sym)
puts "#{title} has been removed."
end
else
puts "Error!"
end

and I get this message:

undefined local variable or method `get' for #


#2

look at your code here and see if you can't figure out the solution

when "delete"
puts "delete which movie?"
title = get.chomp

#3

lolman,
"Hey Thanks" , man...an "s", ha!


#4

does not work
please help


#5

does not work please help me.


#6

remove the end in between puts and else