Where clause for a has_many

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

Read about it here:

http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html

b

Jason wrote: