简体   繁体   中英

Vendor Assets Folder only showing .gitkeep rails

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

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!

That's now how rails3 asset pipeline works, Gem assets as per 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM