Closed jrgifford closed 11 years ago
def destroy @article = Article.find(params[:article_id]) @comment = @article.comments.find(params[:id]) @comment.destroy redirect_to article_path(@article) end
Fix this.
<p> <%= link_to "Destroy Comment", [comment.article, comment], :method => :delete, :confirm => "Are you sure?" %> </p>
point of interest: find commit that changed this.
Fix this.