Hi there,

What's the correct end part of "conditions" if:

- you assume that "Book :has_many Authors"
- I'd like to have the find statement in the below format

@books = Book.find(:all,
          :joins => [:authors => [...]],
    :include => :whatever_stuff,
          :conditions => "books.published = TRUE AND
                          number-of-authors-must-be-greater-than-5")

Thank you for your help!
Tom
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to