That is because you are trying to diplay a comment object in the view, which is technically not possible. You might want to display the individual attributes of the @comment.user object, by calling <%= @comment.user.login %>
Neil Bye wrote: > This works > >>> c=Comment.find(:first) > => #<Comment id: 1, story_id: 1, content: " Good", created_at: > "2010-02-23 13:10:50", updated_at: "2010-02-23 13:19:19", user_id: 1> >>> c.user_id > => 1 >>> c.user > => #<User id: 1, login: "gleb", password: "souhami", name: "Neil Bye", > email: "[email protected]", created_at: "2010-02-25 10:52:32", > updated_at: "2010-02-25 10:52:32"> >>> > > Why doesn't this > > <%[email protected] %> -- 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 [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.

