Vendor Assets文件夹仅显示.gitkeep rails

时间:2022-05-16 00:26:58

For some reason, my vendor assets (and lib assets) folders are only showing ".gitkeep" as a file under the stylesheets and javascripts folders.

出于某种原因,我的供应商资产(和lib资产)文件夹仅显示“.gitkeep”作为样式表和javascripts文件夹下的文件。

How can I view the actual files in there? I know there must be files given all the gems I use, but can't view the stylesheets in there (just showing .gitkeep). Thank you!

如何查看其中的实际文件?我知道必须有文件给出我使用的所有宝石,但无法查看那里的样式表(只显示.gitkeep)。谢谢!

1 个解决方案

#1


1  

That's now how rails3 asset pipeline works, Gem assets as per guides.rubyonrails.org

现在就是rails3资产管道的工作方式,Gem资产按照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.

一个很好的例子是jquery-rails gem,它随Rails一起作为标准的JavaScript库gem。这个gem包含一个继承自Rails :: Engine的引擎类。通过这样做,Rails被告知此gem的目录可能包含资产,并且此引擎的app / assets,lib / assets和vendor / assets目录被添加到Sprockets的搜索路径中。

#1


1  

That's now how rails3 asset pipeline works, Gem assets as per guides.rubyonrails.org

现在就是rails3资产管道的工作方式,Gem资产按照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.

一个很好的例子是jquery-rails gem,它随Rails一起作为标准的JavaScript库gem。这个gem包含一个继承自Rails :: Engine的引擎类。通过这样做,Rails被告知此gem的目录可能包含资产,并且此引擎的app / assets,lib / assets和vendor / assets目录被添加到Sprockets的搜索路径中。