我的 Rails 4 应用程序new.html.erb
引用了form.html.erb
:
# app/assets/templates/jobs/new.html.erb
...
<ng-include src="'<%= asset_path("jobs/form.html") %>'"></ng-include>
...
# app/assets/templates/jobs/form.html.erb
my form is here
(ng-include
是AngularJS指令)
问题是,当form.html.erb
发生变化时,生产环境仍然会加载旧的form.html.erb
. 发生这种情况可能是因为new.html.erb
尚未更改,因此具有相同的旧指纹,指向form.html.erb
旧指纹。
Rails 的处理方式是什么?