how to load tree(!) of vendor to rails 3 app ?
Now Im using this way:
//= require vendor ../../../vendor/assets/ {stylesheet or javascript}
And this won’t work for me:
require_tree vendor OR require vendor
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I suggest you create files like
vendor/assets/javascripts/vendor.jsvendor/assets/stylesheets/vendor.cssInside
vendor.jsyou can doand inside
vendor.cssyou can doAnd then inside
app/assets/javascripts/vendor.jsputand in
app/assets/stylesheets/vendor.cssputIt should be noted, once you get more than a couple files you want to include, you’re very likely better off avoiding
require_treeand instead using a//= requireline for each file independently. This lets you order your assets properly to ensure any dependencies on one another are resolved. By doing what I describe above you set yourself up for success with the individual//= requirelines in yourvendor/directories when that time comes.