html.erb に<%= javascript_include_tag 'application.js'%> と書いたのですが、エラーがでるようです。
内容としては、
rails-ujs.self-551fbd47b981dacbb84a270f9123074caf39eb72aaf6f478ab597c6f81435e4b.js?body=1:648 Uncaught Error: rails-ujs has already been loaded!
at Object.Rails.start (VM3734 rails-ujs.self-551fbd47b981dacbb84a270f9123074caf39eb72aaf6f478ab597c6f81435e4b.js:648)
at VM3734 rails-ujs.self-551fbd47b981dacbb84a270f9123074caf39eb72aaf6f478ab597c6f81435e4b.js:697
at VM3734 rails-ujs.self-551fbd47b981dacbb84a270f9123074caf39eb72aaf6f478ab597c6f81435e4b.js:700
at VM3734 rails-ujs.self-551fbd47b981dacbb84a270f9123074caf39eb72aaf6f478ab597c6f81435e4b.js:701
at VM3734 rails-ujs.self-551fbd47b981dacbb84a270f9123074caf39eb72aaf6f478ab597c6f81435e4b.js:708
turbolinks.self-2db6ec539b9190f75e1d477b305df53d12904d5cafdd47c7ffd91ba25cbec128.js?body=1:7 You are loading Turbolinks from a <script> element inside the <body> element. This is probably not what you meant to do!
の2点が出ています。
404 とは出ていないので、読み込みはしているようです。
初心者なのですが、よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー