开发者

How to include vendor js in Rails 3.1

开发者 https://www.devze.com 2023-03-14 15:34 出处:网络
I have a js vendor script called Corners.js located in /vendor/assets/javascrip开发者_如何转开发ts/

I have a js vendor script called Corners.js located in /vendor/assets/javascrip开发者_如何转开发ts/ How do i include the js vendor script?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消