Topic: Stupid id question

How do you pull up the name attribute for a foreign key within a different database. 

Basic, but I forgot.

Re: Stupid id question

Let's say a Comment belongs to a Post. You can do:

comment = Comment.find(:first) # just grab a comment for example
comment.post.name # returns the name attribute for post

Is that what you want?

Railscasts - Free Ruby on Rails Screencasts

Re: Stupid id question

Yeah, complete brain freeze.  Thanks