0

実行中に直面するエラーは、post_comment_url failed to generate from {:action=>"show", :controller=>"comments", :post_id=>#, :id=>#}, expected: {:action=>" です。 show", :controller="comments"}, diff: {:post_id=>#, :id=>#}

4

1 に答える 1

0

あなたの場合、次のようなとのpost_comment_url2 つのパラメータを受け取る必要があります。post idcomment id

post_comment_url(@post, @comment)
于 2013-10-24T12:09:03.417 に答える