I am trying to delete a post using the code below:
<%= link_to \'Destroy\', post, :method => :delete, :onclick => \"return confirm(\'Are you sure you wa
Make sure that there is no space after the param
def destroy @post = Post.find(params[:id]) @post.destroy redirect_to posts_path, :notice => "Your post has been deleted successfully." end