{"comment":{"created_at":"2011-10-18T06:52:00Z","body":"Sorry, I can't disclose mine.\n\nHowever, here's the css which was raising the problem:\nhttp://pastie.org/2716093\n\nRemember, it's happening only in production. In development, even if\nconfig.asset.debug = true, it runs just fine.","updated_at":"2011-10-18T06:52:00Z","url":"https://api.github.com/repos/rails/rails/issues/comments/2438609","id":2438609,"user":{"avatar_url":"https://secure.gravatar.com/avatar/cbde91d4ba37d495ce3084704a3f0458?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"cbde91d4ba37d495ce3084704a3f0458","url":"https://api.github.com/users/kurko","id":70312,"login":"kurko"}},"action":"created","issue":{"number":3348,"created_at":"2011-10-17T03:13:42Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I'm getting an error in production. It's similar to #138. It's happening only in production, not in development.\r\n\r\nIn my point of view, I did nothing that could cause the error. It was working fine, then I improved my tests, refactored a JS file today and redeployed.\r\n\r\nThe problem\r\n==========\r\n\r\n Now I get this:\r\n\r\n```\r\nActionView::Template::Error (File name too long - /var/rails/primero/releases/20111017013943/app/assets/images/form .columns {\r\n  display: table;\r\n  clear: both;\r\n  margin: 0 0 10px 0; }\r\n\r\ninput:focus {\r\n  background: #f1f1f1;\r\n\r\n(...almost whole css file is output...)\r\n\r\n/* inline_form FORMS *):\r\n    2: <html>\r\n    3: <head>\r\n    4:   \t<title><%= @company_name %><%= if yield(:title).blank?; \"\"; else \": \"+yield(:title); end %></title>\r\n    5:   \t<%= stylesheet_link_tag \"manifest_application\" %>\r\n    6: \t<%= javascript_include_tag \"manifest_application\" %>\r\n    7: \t\r\n    8: \t<% # params[:controller] = 'deals'; %>\r\n  app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___561691512_94090930'\r\n```\r\n\r\nThe whole log is here: http://pastie.org/2709138\r\n\r\nUpon deployment, I'm running assets:precompile (via capistrano). Everything was fine yesterday.\r\n\r\nWhat I did trying to solve\r\n====\r\n\r\n* I commented line 5 (loading css), and the error went to the line 6 (js).\r\n* Gemfile: `gem 'sprockets', :git => 'https://github.com/sstephenson/sprockets.git'`\r\n* Deployed from another branch, which has code from 2 days ago, and everything started working again. I presume something's wrong with my code, but I really did nothing, just refactored a JS file (and created some RSpec specs). How could source code throw in error 'file name too long'?\r\n\r\nHave no clue what else I could do.\r\n\r\nMy environment\r\n=============\r\n\r\n```ruby\r\n# environments/production.rb\r\n\r\nconfig.serve_static_assets = false\r\nconfig.assets.compile = true\r\nconfig.assets.digest = true\r\n```\r\n\r\nSo, could anyone help me? I found nothing similar on Google, only #138 (which is not an ActionView::Template error).","comments":6,"title":"In Rails 3.1, ActionView::Template::Error (file name too long...)","updated_at":"2011-10-18T06:52:00Z","url":"https://api.github.com/repos/rails/rails/issues/3348","id":1924701,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/cbde91d4ba37d495ce3084704a3f0458?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"cbde91d4ba37d495ce3084704a3f0458","url":"https://api.github.com/users/kurko","id":70312,"login":"kurko"},"html_url":"https://github.com/rails/rails/issues/3348","labels":[],"state":"open"},"legacy":{"issue_id":1924701,"comment_id":2438609}}