Код: Выделить всё
window.currentUser =
React is not working
< /code>
Я открываю вкладку «Источники» в Chrome Devtools и смотрю этот макет: < /p>
.
|-index.js
|-assets
|-application.js
|-application.css
|-page_icon.png
Код: Выделить всё
console.log("DEPRECATION: action_cable.js has been renamed to actioncable.js \u2013 please update your reference before Rails 8"),
Код: Выделить всё
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
// vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file. JavaScript code in this file should be added after the last require_* statement.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require rails-ujs
//= require activestorage
//= require jquery
//= require jquery_ujs
//= require_tree .
< /code>
Я где -то читал, что Rails 7 отодвинуты от Sprockets, поэтому я попробовал установить этот драгоценный камень: < /p>
gem 'sprockets-rails'
< /code>
Но, похоже, это ничего не сделало. это на рендере. Я могу поделиться другими фрагментами кода или репозитором Github, если это помогает. Любые входные данные будут высоко оценены. Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/794 ... -on-render
Мобильная версия