Having solved my previous asset_hosts problem, I’m now moving on to
bigger and more entertaining issues, this one involving
javascript_include_tag’s new :cache parameter.
Code snippet thus:
<%= javascript_include_tag “prototype”, “scriptaculous”,
“effects”, :cache => “base” %>
Run it on production and guess what error I get:
A ActionView::TemplateError occurred in users#show:
Permission denied - /var/www/apps/moomai/releases/20071219025219/
public/javascripts/base.js
On line #8 of users/show.rhtml
The Rails user doesn’t have access to the caches it generates? Nice.
Any ideas?