How can you iterate through an array of objects and return the entire object if a certain attribute is correct?
I have the following in my rails app
arr
You need to use Enumerable#find_all to get the all matched objects.
array_of_objects.find_all { |favor| favor.completed == false }