gpt4 book ai didi

javascript - vendor Assets 文件夹仅显示 .gitkeep Rails

转载 作者:行者123 更新时间:2023-11-28 02:36:30 24 4
gpt4 key购买 nike

出于某种原因,我的 vendor Assets (和 lib Assets )文件夹仅将“.gitkeep”显示为样式表和 javascripts 文件夹下的文件。

如何查看其中的实际文件?我知道一定有文件给出了我使用的所有 gem,但无法查看其中的样式表(仅显示 .gitkeep)。谢谢!

最佳答案

这就是 Rails3 Assets 管道的工作方式,Gem Assets 按照 guides.rubyonrails.org

A good example of this is the jquery-rails gem which comes with Rails as the standard JavaScript library gem. This gem contains an engine class which inherits from Rails::Engine. By doing this, Rails is informed that the directory for this gem may contain assets and the app/assets, lib/assets and vendor/assets directories of this engine are added to the search path of Sprockets.

关于javascript - vendor Assets 文件夹仅显示 .gitkeep Rails,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13404927/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com