Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: jquery.js is not found

I wrote the next row in index.html.erb:

<script src="/app/assets/javascripts/jquery.js"></script>

I added the file: jquery.js to the folder: app/assets/javascripts

but in the console, I got an error:

GET http://localhost:3000/app/assets/javascripts/jquery.js 404 (Not Found)

please help.

like image 557
Alon Shmiel Avatar asked Sep 15 '25 10:09

Alon Shmiel


1 Answers

Please use this one

 <script src="assets/jquery.js" type="text/javascript"></script>

this one is good for you

like image 57
kuldeep raj Avatar answered Sep 16 '25 23:09

kuldeep raj