One of those things where i feel i should know how to do this, but just
can’t work it out (maybe it’s time to stop working!)
I have an ‘article’ object which has a foreign key to a ‘user’, linked
by ‘user_id’. My current article on a view page is called @article.
What i need to do is to get the ‘login’ attribute of the user with the
same id as @article 's user_id.
Ie - if i know a user id, how do i get the user object with that id?
Like i say i know this is simple but i’m having a brain stoppage…