简体   繁体   中英

“vendor” and “lib” not included in Rails.application.config.assets.paths for Rails 3.2 app converted from Rails 2

I upgraded an old Rails 2.3 application to version 3.2, and am in the process of switching my javascripts to use the Asset Pipeline.

Everything under app/assets is being included just fine. I had to create the directories under vendor by hand, but nothing is being picked up there. So I printed out the contents of Rails.application.config.assets.paths in the console, and sure enough the assets under vendor and lib are not in the path.

But I looked in another one of my existing Rails 3.2 applications, and sure enough vendor and lib are picked up fine.

But I grepped the config directory of that application for the word vendor and come up with nothing. So apparently lib and vendor get included implicitly somehow. I can't figure out how to add these.

我只需要重新启动应用程序,然后选择了那些目录。

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