有谁能告诉我如何解决已经开始出现在我的应用中的错误?谢谢你的帮助。
Soemthing与...链轮?我的应用程序工作正常,直到最近。关于'第9行',application.js位于admin文件夹中,在Assets中,应该是,我没有更改代码。
Errno::EACCES in Admin/users#index
Showing /home/mycompaq/myapp/app/views/layouts/admin/application.html.erb where line #9 raised:
Permission denied - /home/mycompaq/myapp/tmp/cache/assets/sprockets%2Fb250691303afe8bdea5daa9e24412c8020130818-2524-njp18c-0 or /home/mycompaq/myapp/tmp/cache/assets/D5C/180/sprockets%2Fb250691303afe8bdea5daa9e24412c80
Extracted source (around line #9):
6: <title><%= content_for?(:title) ? yield(:title) : admin_area_title %></title>
7: <%= csrf_meta_tags %>
8: <%= stylesheet_link_tag "admin/application", :media => "all" %>
9: <%= javascript_include_tag "admin/application" %>
10: <% if @include_goole_maps %>
11: <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true&libraries=places"></script>
12: <% end %>
Rails.root: /home/mycompaq/myapp
Application Trace | Framework Trace | Full Trace
app/views/layouts/admin/application.html.erb:9:in `_app_views_layouts_admin_application_html_erb___1652810648_69910752274140'
答案 0 :(得分:0)
简单的解决方案。刚刚删除了我的应用程序文件夹中的tmp文件夹及其内容:
rm -r tmp
将其备份到其他地方可能是一个好主意,首先,以防万一。