Displaying 1 result from an estimated 1 matches for "oleand".
Did you mean:
oleane
2006 Jan 19
4
Relationships... not the personal kind!
Hello all,
I''m very new to Rails and I love it so far. However, there are some
things that aren''t so clear to me.
Let''s say a blog post can have many comments, and a comment can only
belong to one post. A user can have many posts and many comments as
well. (this part makes perfect sense):
class Comment < ActiveRecord::Base
belongs_to :posting
belongs_to :user