0
在我的Rails應用程序中。 JavaScript_include_tag似乎在我的本地主機(mogrel)中正常工作,但我轉向生產(Phusion Passenger),它似乎表現不同,我得到以下例外:(不知道它是在問all.js !!)javascript_include_tag與Rails中的Phusion Passenger異常
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>
有什麼想法?
感謝,
擔
謝謝。這似乎是訣竅(我嘗試在JavaScript文件夾的chmod -R 777)。你知道我能用最少的東西做什麼?因爲777不安全? – Tam 2009-10-22 00:38:25