# Complex relationships in Ruby - display data across many tables

**URL:** <https://www.ruby-forum.com/t/complex-relationships-in-ruby-display-data-across-many-tables/166224>\
**Category:** Rails\
**Created:** [April 23, 2009, 12:27am UTC](https://www.ruby-forum.com/t/complex-relationships-in-ruby-display-data-across-many-tables/166224 "2009-04-23T00:27:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tandrei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b77776/32.png) [@tandrei](https://www.ruby-forum.com/u/tandrei)\
**Post date:** [April 23, 2009, 12:27am UTC](https://www.ruby-forum.com/t/complex-relationships-in-ruby-display-data-across-many-tables/166224/1 "2009-04-23T00:27:22Z")

</div>

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!
