From: Rodrigo Lueneberg Date: 2013-06-29T03:40:33+09:00 Subject: Re: Find element in array of hashes Sorry, I fixed, but still get the error. Look: results = @selectedProductsArray.find {|k,v| v[:id] == 3 } NoMethodError in ServicesController#list undefined method `[]' for nil:NilClass -- Posted via http://www.ruby-forum.com/.