title: Having the following Error: NoMethodError in Posts#show
body: <p>I keep getting the following error. I'm trying to develop my own blogging platform as a way for me to learn and get better.</p>
  
  <p><strong>Error:</strong></p>
  
  <blockquote>
    <p>Showing /home/ubuntu/workspace/app/views/posts/show.html.erb where
    line #36 raised:</p>
    
    <p>undefined method `post_comments_path' for
    &lt;#:0x007f88f0044248> Did you mean?  posts_path</p>
  </blockquote>
  
  <p><strong>app/views/posts/show.html.erb</strong></p>
  
  <pre><code>&lt;h2&gt;Add a comment:&lt;/h2&gt;
  &lt;%= form_for([@post, @post.comments.build]) do |f| %&gt;
    &lt;div class="field"&gt;
      &lt;%= f.label :author %&gt;&lt;br /&gt;
      &lt;%= f.text_field :author %&gt;
  </code></pre>
  
  <p><strong>config/routes.rb</strong></p>
  
  <pre><code>Rails.application.routes.draw do
    get 'welcome/index'
  
    resources :posts
    # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
    root :to =&gt; "posts#index"
  end
  </code></pre>