So I'm still trying to work through a tutorial on building a CMS and
blog. I have a blog_controller.rb with post and comments. In my show
action, I'm trying to get it to pull the post with the given id and
then pull the collection of comments associated with that post's id.
@post = Post.find(params[:id])
Then I'm supposed to iterate over the comments in a partial view
<% @post_comments.each do |comment| %>
<%= render :partial=>"comment", :object => comment %>
<% end %>
So I'm getting a NoMethod Error in the Show view. Anyone see the
(probably) obvious problem with the code? Also, is post_comments an
automatic variable created from a join table operation?