Consider this:
class Document
  has_many :revisions
end
class Revision
  belongs_to :document
end

Suppose I wanted to query all records in my revisions table, but I wanted to
order the results by document.number.  What sort of conditions would I have
to impose on my call to Revision.find_all?  Is there a way to specify this
in Ruby/Rails?  Or will I need to (shudder) write some SQL?

--wpd

--~--~---------~--~----~------------~-------~--~----~
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