【问题标题】:Rails 5.1.6 issues with assetsRails 5.1.6 资产问题
【发布时间】:2018-10-23 14:42:46
【问题描述】:

我最近安装了 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'    

我到处寻找,但没有找到解决方案。 我希望有人可以帮助我。

【问题讨论】:

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


    【解决方案1】:

    好吧,感谢https://stackoverflow.com/a/17748774/8048737中的这个答案,我终于弄清楚了如何摆脱错误

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

    //= require turbolinks
    //= require_tree .
    

    【讨论】:

      猜你喜欢
      • 2013-05-12
      • 2015-02-23
      • 1970-01-01
      • 2018-09-01
      • 2016-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多