Reputation: 3177
I downloaded some css/js files online and would like to reuse it on my site. The folder structure is like this:
assets
cs
js
<some extra folders like images, etc>
Since they are 3rd party library and I don't want to put it in my asset folder of my project. I am wondering where I can put it?
Thanks.
Upvotes: 2
Views: 1644
Reputation: 7419
vendor/assets/stylesheets
for css, and
vendor/assets/javascripts
for js
Upvotes: 1
Reputation: 2451
In rails 3.2, 3rd party javascripts files are put in the folder
vendor/assets/javascripts
and CSS files are put in the folder
vendor/assets/css
Javascripts files are required in application.js as
//= require filename
Css files are required in application.css as
*= require filename
NOTE :- Both files will not contain their extension as .js or .css when required in the application.css and application.js file
Upvotes: 2