[Rails] Link posts and comments on a new view/controller

2013-12-03 Thread phil...@bailey.st
Hello everyone, I'm a newbie following the http://guides.rubyonrails.org/getting_started.html , so far everyone is working without problems except a modification that I made earlier. I've created a view called welcome that act as main content page where I list all the posts, going a bit

Re: [Rails] Link posts and comments on a new view/controller

2013-12-03 Thread phil...@bailey.st
Just sorted out using Nested Eager Loading. % post.comments.each do |comment| % td%= comment.commenter %/td td%= comment.body %/td On 03/12/13 16:23, phil...@bailey.st wrote: Hello everyone, I'm a newbie following the