Displaying 1 result from an estimated 1 matches for "e5aced4f".
2006 May 02
5
listing parents from child conditon
Hi,
How can I grab all parents in a table, depending on a condition in the
children table ?
Fx.
def list
@projects = Project.find(:all)
end
will find all projects in my table. Now let''s say I want show a similar
list, for all open projects.. I define an open project, as all lines
(Line has belongs_to :Project) that do not yet have a closed_at
timestamp set.
So basically, I want