title: Edit a nested resource in rails
body: <p>In the following code segment</p>
  
  <pre><code>.comment
      %p= comment.comment
      %p= comment.user.email
  
      = link_to 'Edit', edit_post_comment_path(comment.post, comment) 
      = link_to "Delete", [comment.post, comment], method: :delete, data: {confirm: 'Are you sure"'}
  </code></pre>
  
  <p>why do both <strong>Edit</strong> and <strong>Delete</strong> take in <strong>comment.post</strong> as a parameter? What does it mean?</p>