On 11 August 2011 23:38, Walter Lee Davis <[email protected]> wrote:
>
> On Aug 11, 2011, at 2:02 PM, 7stud -- wrote:
>
>> I don't know anything about associations yet.  Is topic_id a field in
>> the Post model when a Post has_one :topic?
>
> Yes.

No, Post has a topic_id field if Post belongs_to :topic.

If Post has_one topic then Topic belongs_to Post so Topic will have a post_id

Colin

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