title: Delete comment link not working (acts_as_commentable)
body: <p>In my Rails app, each post has a comment section where users can leave comments. I want each comment to have a delete link but I just can't get it to work. I am using the acts_as_commentable gem here.</p>
  
  <p>posts/show.html.erb</p>
  
  <pre><code>&lt;% @comments.each do |comment| %&gt;
    &lt;p&gt;&lt;strong&gt;&lt;%= comment.user.username %&gt;&lt;/strong&gt;&lt;/p&gt;
    &lt;p class="comment"&gt;&lt;%= comment.comment %&gt;&lt;p&gt;
    &lt;%= link_to "Delete", [@post, comment], method: :delete %&gt; 
  &lt;% end %&gt;
  </code></pre>
  
  <p>I need help with this line </p>
  
  <pre><code>&lt;%= link_to("Delete", [@post, comment], method: :delete %&gt; 
  </code></pre>
  
  <p>comments_controller.rb</p>
  
  <pre><code>def create 
    @post = Post.find(params[:post_id]) 
    @comment = @post.comments.create(comment_params) 
    @comment.user_id = current_user.id 
  end
  
  def destroy
    @comment = Comment.find(params[:id])
    redirect_to :back
  end 
  </code></pre>
  
  <p>Thanks for your help! :)</p>