On Fri, Apr 2, 2010 at 8:33 PM, David Zhu <[email protected]> wrote:

> I made a posts scaffold, and a comments scaffold
>
> Now i want to link the two of them together by --
>
>
> Post--
>
> has_many :comments
>
> and comments-
>
> belongs_to :post
>
>
> After that, I have no idea what to do in the controller or form for my
> comments
>
> What do i need to change in the comments controller and form so every
> comment  that gets created is assigned to a post?
>
> Btw, i already have a post_id:integer column in my comments table
>
> I REALLY NEED HELP!! thanks a lot
>
>
David, Ryan Bates has redone the classic Rails blog screencast which answers
your
your question(s) quite nicely.  Thus, you can find the screencast here and
following
along:

http://media.rubyonrails.org/video/rails_blog_2.mov

Good luck,

-Conrad


> --
> 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]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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.

Reply via email to