Monday, May 20, 2024
11
rated 0 times [  12] [ 1]  / answers: 1 / hits: 15493  / 12 Years ago, tue, january 8, 2013, 12:00:00

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.


More From » ruby-on-rails

 Answers
23

Please use this one



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


this one is good for you


[#81008] Monday, January 7, 2013, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bradleymoisesy

Total Points: 121
Total Questions: 105
Total Answers: 95

Location: Nepal
Member since Mon, Jan 4, 2021
3 Years ago
bradleymoisesy questions
Wed, Dec 22, 21, 00:00, 2 Years ago
Tue, Jun 1, 21, 00:00, 3 Years ago
Thu, Jun 11, 20, 00:00, 4 Years ago
Thu, Jan 16, 20, 00:00, 4 Years ago
;