在我的 Rails 应用程序中。javascript_include_tag 似乎在我的本地主机(mogrel)中工作正常,但我转向生产(Phusion Passenger)它似乎表现不同,我得到以下异常:(不确定它对 all.js 的要求是什么!!)
A ActionView::TemplateError occurred in posts#show:
Permission denied - /var/www/war/releases/20091021160940/public/javascripts/all.js
On line #9 of app/views/layouts/base_posts.html.erb
6: <%= stylesheet_link_tag 'prototube/prototube', :media => 'all' %>
7: <%= stylesheet_link_tag 'flowplayer', :media => 'all' %>
8:
9: <%= javascript_include_tag :defaults, 'jquery','jquery.tools.min', 'thickbox', 'truncator', :cache=>true %>
10: <script type="text/javascript" src="/javascripts/prototube.js"></script>
11: <script type="text/javascript" src="/javascripts/swfobject.js"></script>
12: <script type="text/javascript" src="/javascripts/scriptaculous.js?load=effects"></script>
有任何想法吗?
谢谢,
谭