Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include vendor js in Rails 3.1

I have a js vendor script called Corners.js located in /vendor/assets/javascripts/ How do i include the js vendor script?

like image 942
Casper larsen Avatar asked Jun 22 '11 22:06

Casper larsen


1 Answers

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.

like image 146
Radim Avatar answered Sep 23 '22 19:09

Radim