Когда я использую image_path ("something")
, ответ не имеет отпечатка пальца. (ожидается something-1y7asdft786f78as.png
) Но когда я использую javascript_include_tag
, он отображается с отпечатком пальца.image_path не имеет отпечатков пальцев
Я googled и вычисляю config.assets.digest = true
или config.assets.compile = true
. Сначала не работают. Секунды работают с очень низкой скоростью.
Кто знает, что не так?
# Be sure to restart your server when you modify this file.
config.assets.enabled = true
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.1'
# Add additional assets to the asset load path
# Rails.application.config.assets.paths << Emoji.images_path
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# Rails.application.config.assets.precompile += %w(search.js)
Rails.application.config.assets.precompile += %w(twitter/bootstrap/* ZeroClipboard.swf)
# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false
# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
config.assets.debug = true
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
# yet still be able to expire them through the digest params.
config.assets.digest = true
'' 'Возвращает ссылку на ссылку на Base64-закодированный актив по указанному пути''' Это не отпечаток пальца. – ryush00