Hello,

I have to make a sort of database for movies.

I have this :

movies = { harry_potter: 8}
  puts "Wat wil u doen : "
  choice = gets.chomp
  case choice
  when "add"
    puts "welke film wilt u toevoegen"
    title = gets.chomp
    puts "welke rating krijgt deze film"
    rating = gets.chomp
    if movies[title.to_sym].nil?
        movies[title.to_sym] = rating.to_i
        puts "Deze film is toegevoegd"
    else
        puts "Deze flim is al toegevoegd"
    end
  when "update"
    puts "Updated!"
  when "display"
    puts "Movies!"
  when "delete"
    puts "Deleted!"
  else
     puts "Error!"
  end

but when I try to add a second time a movie I do not see the message 
that the film is al toegevoegd.
What do I do wrong here ?

Roelof