I have some html pages in which each page includes some javascripts files. Where I have to place this files?
folder/
page1/
index.html
script1.js
page2/
index.html
script2.js
Updated
I explain better. I have some little projects composed by an html page and some javascripts files, in which i use a canvas. I have different scripts for each page.
/sketches
/project1
index.html
script1.js
sketch.js
/project2
index.html
sketch.js
The files named 'sketch' are different between them. I tought to make one controller with a parameter id and basing on this I'll load a different project. I did it putting the html page inside the public folder and it worked, but I have problems with the javascripts, that are refused.
So, for what you are saying to me, I have to place all the javascripts in a separate folder... I'd like to keep that structure. Is there no way in rails to serve that folder, which contains all the projects, as static?