简体   繁体   中英

How to include vendor js in Rails 3.1

我有一个名为Corners.js的js供应商脚本位于/ vendor / assets / javascripts /我如何包含js供应商脚本?

Just include

//= require Corners.js

in application.js and let the Rails to do the job for you (it automatically includes vendor/assets).

If you are just creating the vendor/assets/javascripts directory, you will need to restart your Rails server.

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