Forum: Ruby on Rails Complex relationships in Ruby - display data across many tables

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
tandrei (Guest)
on 2009-04-23 02:27
(Received via mailing list)
Hi,

I have designed an application consisting of 20+ tables, and utilizing
Ruby on Rails.
I am using an authentication system for users to login. I want to
display to the user, when he logs in, information related to him that
can be found across many tables, between these tables there are all
the possible relationships. How can I accomplish this in RoR? Should I
consider using views, multiple joins? I did not managed to get
information from one model further than 2 tables looking in the tables
design using classical approaches like "has many", ":through" etc.

Can you please share your knowledge?

Thanks!
This topic is locked and can not be replied to.