Where in the comments/show view are you using @comments? Is this line supposed to be in your Posts controller instead?