Becoming more selective


#1



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.


#2

Right hand side of good_movies clearly shows that you defined it as an Array. Deleting array notation should solve your problem.


#3

:+1: thanks again tomgez


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.