johntopley/manifesto — Issue #5: Exclusion of directories does not work?
Author: phaus
Created: 2012-03-09 10:53:41+00:00
State: open

I have setup my basic ManifestController

class ManifestController < ApplicationController
def show
headers['Content-Type'] = 'text/cache-manifest'
render :text => Manifesto.cache, :directory => '/public', :excludes => ['/public/uploads/tmp'], :layout => false
end
end

But i always got that tmp folder within my manifest file...
I tried it with different versions:

render :text => Manifesto.cache, :directory => '/public', :excludes => ['/public/uploads/tmp/*'], :layout => false
render :text => Manifesto.cache, :directory => './public', :excludes => ['./public/uploads/tmp/*'], :layout => false
render :text => Manifesto.cache, :directory => './public', :excludes => ['/uploads/tmp'], :layout => false
render :text => Manifesto.cache, :directory => './public', :excludes => ['/uploads/tmp/*'], :layout => false

But nothing seems to work, i always got something like:

CACHE MANIFEST
# Generated by manifesto (http://github.com/johntopley/manifesto)
# Hash: d01bd127b63d356ed65a06b987f2937e
CACHE:
/uploads/tmp/20120228-1054-69335-7673/v_320_IMG_0042.JPG?1330422867
/robots.txt?1327079297
/humans.txt?1327079297
/favicon.ico?1329572127
...
/500.html?1327055147
/422.html?1327055147
/404.html?1327055147