I am building a Rails 4 web application and I want to include some .js files into my application. Is it possible to directly add JavaScript file to my Rails ..app/assets/javascripts
folder and add reference in application.js like this?
//= customejsfile.js
Is this the right way? If yes, is it possible for me to follow the same steps in adding jQuery and Bootstrap library?
Any help is appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…