On Dec 12, 6:38 pm, Ast Jay <[email protected]> wrote: > > In that loop, can I do: > > <td><% post.user %></td> > > ...to give me back the user that made that post? > > In the rails console I can do user.posts (that gives me all the posts a > user has made) but I can't do post.user (to give me the user). > As long as you have that belongs_to, post.user should work. What do you mean when you say that you can't?
Fred -- 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.

