If you look down at the code, when I try to delete one of my entries that I already have in my code at the start, it tells me "wrong number of arguments (1 for 0). But when I replace the brackets in else
puts "Title has been removed."
with parenthesis, it works. Why is this?
when "delete" puts "Which entry would you like to delete?" title=gets.chomp if movies[title.to_sym].nil? puts "There is no entry by that name." else movies.delete[title.to_sym] puts "Title has been removed." end