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/.