This line
<script type="text/JavaScript" src="public/js/jquery.js"></script>
throws an arror
GET http://localhost/ajax/public/js/jquery.js 404 (Not Found)
without ‘public’ it was the same.
It worked without public after i changed this in my app:
get '/' do
erb :main
end
to:
get '/sth_else' do
erb :main
end
But I want to load a page just with http://www.page.com/ with no further arguments.
Please help me out.
What does
ajaxdo in your path? If you Javascript files are inpublic/js/jquery.js. You should be able to fetch them withand to be able to include them with
/js/jquery.js(mind the start/)