<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/ruby-beginner-en-0i8v1/0/5?curriculum_id=5059f8619189a5000201fbcb#
<In what way does your code behave incorrectly? Include ALL error messages.>
Oops, try again. Did you call .to_sym on title and .to_i on rating before adding them to the hash?
This is the error message I keep getting. I don’t know where to put the to_sym or to_i.
```movies = {
‘Inception’ => ‘4’
}
puts “What would you like to do?”
choice = gets.chomp
case choice
when “add”
puts “Movie title!”
title =
title = gets.chomp
title.to_sym
when “update”
puts “Rating!”
rating =
rating = gets.chomp
rating.to_i
movies[“title”] = rating
puts “You added #{title} and #{rating}.”
when “display”
puts “Movies!”
when “delete”
puts “Deleted!”
else
puts “Error!”
end
Here's what I have. How do I do it? Thanks
<do not remove the three backticks above>