# Cross referenced tables

**URL:** <https://www.ruby-forum.com/t/cross-referenced-tables/135780>\
**Category:** Rails\
**Created:** [April 24, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/cross-referenced-tables/135780 "2008-04-24T22:05:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lfeistel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ecc23a/32.png) [@lfeistel](https://www.ruby-forum.com/u/lfeistel)\
**Post date:** [April 24, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/cross-referenced-tables/135780/1 "2008-04-24T22:05:47Z")

</div>

Hi Guys,

I’m having a similar problem to someone earlier on the board, but the  
solutions posted aren’t working for me, so I figured I wouldn’t hijack  
the thread and started a new one:

I have an application that allows users to post updates, when they go to  
the homepage I want the users details and a list of their updates to  
show, however I’m having trouble with the find parameters.

Currently the model states that:

user has\_many: updates  
update belongs\_to:user

I think this is correct (and the right pluralisation)?

the controller for the index page looks like this:

def index  
@user = User.find(params[:id])  
@updates = Update.find(params[:id]).updates

end

as explained in a previous thread  
([You have a nil object - Rails - Ruby-Forum](http://www.ruby-forum.com/topic/150785))  
I’ve also tried the different permutations of  
@updates = Update.find(:all, :conditions =\>[“user\_id = ?”,

> params[:user\_id]])
