Ruby Forum Rails I18n > belongs_to in a list

Posted by GA Gorter (gorter9)
on 19.11.2007 21:44
I have list of blogs with usernames

<% for @blogs in @blogs.reverse %>
<% @user = @blogs.user %><br>
<%= @user.login %>

but the user.login is a no method error. when i in a view of a specific
blog the user.login is returned well
but in the list of all blogs i have no idea to view the user.login