Tuesday, April 10, 2012

[Rails] Re: User Association

i want to have the name of the user who created the each post under
their post, what i have now in my view only shows the post, can u help
me wit this


Colin Law wrote in post #1055779:
> On 10 April 2012 10:31, deee el <lists@ruby-forum.com> wrote:
>> format.html
>> name.
> Not sure I understand exactly, but if you have a post in this_post,
> say, then the user is this_post.user, so the name will be
> this_post.user.name
>
> Colin
>
>>
>> --
>> Posted via http://www.ruby-forum.com/.
>>
>> --
>> 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 rubyonrails-talk@googlegroups.com.
>> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscribe@googlegroups.com.
>> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>
>
>
> --
> gplus.to/clanlaw

--
Posted via http://www.ruby-forum.com/.

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate