# Belongs\_to has many

**URL:** <https://www.ruby-forum.com/t/belongs-to-has-many/184097>\
**Category:** Rails\
**Created:** [February 24, 2010, 10:34pm UTC](https://www.ruby-forum.com/t/belongs-to-has-many/184097 "2010-02-24T22:34:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidz101](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f0a364/32.png) [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Post date:** [February 24, 2010, 10:34pm UTC](https://www.ruby-forum.com/t/belongs-to-has-many/184097/1 "2010-02-24T22:34:59Z")

</div>

Ok… heres the deal

I’m trying to make a real simple app, but I’m getting wierd errors, and  
I’m not sure wat to do.

So my project is-- using Restful\_Authentication, I need to assign each  
user with their own links, that they can add themselves (using the  
scaffold thing)

go i generated a links scaffold, and now I’m trying to make each user  
have their own

Is it right to do “has\_many :links” in the USER model, and “belongs\_to  
:user” in the links model??

I’m not that clear… and how would I print it out? Ohh… confused…

I started a thread here–  
[http://railsforum.com/viewtopic.php?pid=119484#p119484](http://railsforum.com/viewtopic.php?pid=119484#p119484)

but the guys not answering me. ccan you please help me??

thanks so much, you can reply here or at [railsforum.com](http://railsforum.com), i dont care

thanks so much 🙂
