2020-11-09から1日間の記事一覧
UrlGenerationError 今回の実装において最も苦戦したエラー。 一見簡単そうに見えるエラーなのだが、かなりの曲者だった。 # ActionController::UrlGenerationError: # No route matches {:action=>"show", :controller=>"comments", :id=>nil}, missing req…
今回は、ajaxを使ったコメント機能の実装時に遭遇した二大エラーについてまとめてみました。 ajaxの復習記事はまた後日に上げます。 Can't verify CSRF token authenticity. Started PATCH "/comments/44" for ::1 at 2020-11-07 16:24:44 +0900 Processing …