So we have a small problem with asset pipeline digests in that we have a number of HTML templates as assets (for AngularJS) and we references the paths for these assets in a
A solution was suggested here which involves using the depend_on
or depend_on_asset
directive. In my case adding this to the .js.erb
file works:
//= depend_on_asset views/template.html
url = '<%= asset_path('views/template.html') %>'
This will recompile this file any time there is a change to views/template.html
as desired.