ruby-on-rails - Rails:ActionView::Template::Error(production.log 中不允许操作错误

标签 ruby-on-rails asset-pipeline actionview

这是不断出现在我的 production.log 中的内容

Started GET "/" for 173.26.190.110 at 2011-12-08 12:21:24 -0500
  Processing by PagesController#home as HTML
Rendered pages/home.html.erb within layouts/application (19.9ms)
Compiled application.js  (9ms)  (pid 4397)
Compiled bootstrap-modal.js  (1ms)  (pid 4397)
Completed 500 Internal Server Error in 148ms

ActionView::Template::Error (Operation not permitted - /opt/nginx/html/mrfs/tmp/cache/assets/CD3/620/sprockets%2Fa2dc05811f5202de098f49234f831c1c):
    9:     <![endif]-->
    10:
    11:         <%= stylesheet_link_tag    "application.css" %>
    12:         <%= javascript_include_tag      "application.js" %>
    13:
    14:   <script type="text/javascript">
    15:
  app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb___536300347_80777950'

这是什么意思?我该如何解决?

应用程序.js:

// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery_ujs
//= require_tree .
//= require twitter/bootstrap

更新

我不确定发生了什么变化,但它现在似乎正在运行并且从今天下午大约 1:57 开始一直运行。我不确定是什么原因造成的。是否有可能在 nginx 或 rails 内部缓存会导致它挂起并在那时刷新缓存?

最佳答案

我不确定发生了什么变化,但它现在似乎正在运行并且从今天下午大约 1:57 开始一直运行。我不确定是什么原因造成的。是否有可能在 nginx 或 rails 内部缓存会导致它挂起并在那时刷新缓存?

关于ruby-on-rails - Rails:ActionView::Template::Error(production.log 中不允许操作错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8435026/

相关文章:

ruby-on-rails - 使用 devise_token_auth +omniauth 请求规范

css - 每个操作的 Rails scss 样式表

ruby-on-rails - Rails 生产 Assets 预编译,但在浏览器中显示为空白

ruby-on-rails - Rails 模型关系 : Has one but also belongs to many

ruby-on-rails - RoR——NoMethodError:私有(private)方法 `open' 调用 Gem::Package:Class

ruby-on-rails - ActionView::Template::不支持错误对象

ruby-on-rails - 如何使控制台中的 View 缓存片段过期?

ruby-on-rails - 将 rails_admin 与 rails_api 一起使用

ruby-on-rails - Hartl Rails 教程 - 种子用户密码

scala - 提供 Scala.js Assets