我有两种布局,一种是application.html.erb
,另一种是post.html.erb
使用布局 application.html.erb 的所有页面,除了一个使用 post.html.erb 的页面
所有页面application .html.erb
都在工作,但post
布局页面不仅在生产模式下工作。
当我将error.log
收到错误称为
ActionView::Template::Error (Permission denied - /var/rails_apps/domain.com/releases/20131025170245/tmp/cache/assets/production/sprockets/82446875410ad6d3314b2a4bb29a4945):
4: <title><%= content_for?(:title) ? "Domain - " + yield(:title) : "Domain" %></title>
5: <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
6: <%= stylesheet_link_tag "post", media: "all", "data-turbolinks-track" => true %>
7: <%= javascript_include_tag "post", "data-turbolinks-track" => true %>
8: <link href='http://fonts.googleapis.com/css?family=Oxygen' rel='stylesheet' type='text/css'>
9: <%= csrf_meta_tags %>
10: </head>
pp/views/layouts/post.html.erb:7:in `_app_views_layouts_post_html_erb__192281524152602475_69920226629340'
我设置了权限,0777
所以怎么可能。任何人都可以帮忙。