Displaying 1 result from an estimated 1 matches for "4d012f89".
Did you mean:
1d12f89
2006 Mar 30
1
strange has_many array problem
I have a class that has_many :visits, I want to search through the
visits to get only ones that are committed:
I thought it would be as easy as:
==================
visits.find_all do |visit|
visit.coming?
end
=================
but this always returns the entire list of visits. The only way to
get it to work is to put the visits into a new array first:
=================