我已经尝试了很多来禁用链中的sprockets资产缓存,但没有白费。我试图配置development.rb但它根本不工作。我正在使用此代码来禁用缓存生成
config.assets.cache_store = :null_store # Disables the Asset cache
config.sass.cache = false # Disable the SASS compiler cache
ruby version = 2.3.3 rails version = 5.0.1提前感谢。
根据Rails docs,将以下代码块添加到您的environment / development.rb中
config.assets.configure do |env|
env.cache = ActiveSupport::Cache.lookup_store(:null_store)
end