tonypm wrote: > Repair has_many :notes > > SELECT * FROM repairs > where exists > (select * from notes where repairs.id=notes.repair_id > and and notes.flagged)
r = Repair.find(...) notes = r.notes.find_by_flagged(true) I can't think of a way to learn how deep the ActiveRecord DSL gets, besides read read read blogs, tutorials, books, and its documentation! I myself probably know only 30% of it! -- Phlip --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

