Rails 3.1 assets has no fingerprint in production

半腔热情 提交于 2019-12-01 03:37:45

Check that you have the pipeline turned on in application.rb:

config.assets.enabled = true

Are you using the correct helper methods for writing the tags? The helper methods should not have the /styleheets and /javascript in the path. Like this (inside erb):

javascript_include_tag "application"
stylesheet_link_tag "application"

You will also need to run the precompile task as part of the deploy processs to create the files, since you've set compile to false.

The asset pipeline guide shows how to set this up with capistrano.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!