Rails 5.1.6资产问题

时间:2018-05-14 00:35:05

标签: ruby-on-rails ruby-on-rails-5.1

我最近安装了rails 5.1.6但是当我转到应用程序中的任何一个视图时,它会抛出以下错误。

Errno::ENOENT in Test#index

No such file or directory @ unlink_internal - C:/Users/Bastian/AppData/Local/Temp/execjs20180513-17244-1f5fvjjson

Started GET "/test/index" for 127.0.0.1 at 2018-05-13 20:22:07 -0400
Processing by TestController#index as HTML
Rendering test/index.html.erb within layouts/application
Rendered test/index.html.erb within layouts/application (1.0ms)
Access Denied.
Completed 500 Internal Server Error in 427ms
ActionView::Template::Error (No such file or directory @ unlink_internal - C:/Users/Bastian/AppData/Local/Temp/execjs20180513-17244-1f5fvjjson):
4:     <title>Testr</title>
5:     <%= csrf_meta_tags %>
6:
7:     <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
8:     <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> 
9:   </head>
10:
app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__530887143_69788540'    

我一直在寻找各处但尚未找到解决方案。 我希望有人可以帮助我。

1 个答案:

答案 0 :(得分:0)

好吧,最后我想通过https://stackoverflow.com/a/17748774/8048737

中的答案找出了如何摆脱错误

在简历中,我从 application.js 中删除了这两行:

//= require turbolinks
//= require_tree .