我正在做这个 ruby on rails 教程 - http://guides.rubyonrails.org/getting_started.html 在完成 6.4 部分之后,如果我尝试做任何事情,我就会开始收到这个错误。因为我在尝试查看帖子时收到此错误:
Errno::EACCES 在帖子中#show
Showing /home/user/rails/blog/app/views/layouts/application.html.erb where line #5 raised:
<html>
<head>
<title>Blog</title>
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
<%= csrf_meta_tags %>
</head>
Permission denied - /home/user/rails/blog/tmp/cache/assets/development/sass/bd7e1cc0cf5d133ac313bf5ffa5e5d87b843522a/comments.css.scssc
(in /home/user/rails/blog/app/assets/stylesheets/comments.css.scss)
Rails.root: /home/user/rails/blog
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__1904510075995834678_70186546148480'
Request
Parameters:
{"id"=>"1"}
它表明这一行引发了一个错误:
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
显示我被拒绝访问的文件 (comments.css.scss) 是空的,只有三个注释行。这里有什么问题?我遵循教程指南,不知道我可以做些什么不同的事情。