> @tickets = Ticket.find(:all, :include => :issues) That simple, huh? I kind of thought of this but I also thought that if I did that, then if a ticket had, say, 3 issues, then the same ticket would be listed 3 times. But I see now that I fell into the trap of thinking of Rails model relationships as relational db relationships. Lesson learned.
Jack, thanks for the counter cache tip! Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

