I have one old project of ROR , I am adding some code in separate javascript file , I have used javascript_include_tag to load the js file for the view ,
I have also tried below code in html.erb file
<script type="text/javascript" scr="./designs/javascripts/scripts.js"></script>
<script type="text/javascript" scr="../designs/javascripts/scripts.js"></script>
<script type="text/javascript" scr="/designs/javascripts/scripts.js"></script>
but not loaded the JS file. Any idea highly appreciable. Rails Version 2.3.18 Ruby Version 1.9.3
Aucun commentaire:
Enregistrer un commentaire