Where clause for a has_many

I think you want to pass has_many a block with your conditions...

Read about it here:

b

Jason wrote: