I've get a html with css & js like this in an ROR project
/public/foo/index.html
/public/foo/js/main.js
/public/foo/css/main.css
and in the index.html conclude js & css with relative path
<script type="text/javascript" src="js/main.js"></script>
<link href="css/main.css" rel="stylesheet">
and I add the following to route
match '/foo', :to => redirect('/public/foo/index.html')
So now I can access the index with 0.0.0.0/foo
but of course cannot load css & js
so how to load css & js without edit the path in index.html?
Do I have to move css & js to another position?