here is my code good_movies = [movie_ratings.select do |m, r| if r > 3 puts m end end] and here is the problem Oops, try again. It looks like good_movies isn't a hash.
Right hand side of
good_movies clearly shows that you defined it as an Array. Deleting array notation should solve your problem.
thanks again tomgez
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.