У меня эта ошибка
Started GET "/" for 127.0.0.1 at 2020-03-30 16:20:14 +0800
Processing by ProductsController#index as HTML
Rendering products/index.html.erb within layouts/application
Rendered products/index.html.erb within layouts/application (Duration: 0.3ms | Allocations: 70)
Completed 500 Internal Server Error in 45ms (ActiveRecord: 0.0ms | Allocations: 18735)
Я использую Rails 6 и React в качестве внешнего интерфейса. Я включил фиктивный index.html.erb
в представление Rails.
приложение. html .erb
<!DOCTYPE html>
<html>
<head>
<title>AnimeStore</title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag 'application', media: 'all' %>
<%= javascript_pack_tag 'application'%>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<%= javascript_pack_tag 'index' %>
<%= stylesheet_pack_tag 'index',media: 'all' %>
</head>
<body> <%= yield %> </body>
</html>