1
0

先日の続き

Last updated at Posted at 2024-03-13

先日の解決策が分かったため記述

どうやらrubyとJavaScript を同時に使うことは相性が悪かったことが原因とメンターさんに伺いました。
解としては、該当するviewファイルの中の

<%= form_with model: @item, local: true do |f|%>

のなかにdata: {turbo: false},を追記した

<%= form_with model: @item, data: {turbo: false},local: true do |f|%>

と記述すること。でした。

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0