How do I ignore files/folders in asset_hash?

I have a folder that I would like asset_hash to ignore and I can’t seem to figure out if it can be ignored or not. Any help would be greatly appreciated.

I belive there is an “ignore” option for the asset_hash middleware, but I’m not sure how to set it properly.

Of course, working the issue for a few hours goes nowhere, but after posting to the forum things start working…

I was able to send options to the asset_hash extension as follows, where :ignore is an array of regexes:

activate :asset_hash, :ignore => [/^talks/]

FYI, using a block does not work:

activate :asset_hash do |f|
  f.ignore = [/^talks/]
end
2 Likes