Saturday, November 15, 2014

Sinatra and index.html

I wanted to serve the jQuery Touch demos from Sinatra and I found that jQuery uses links that point to a folder (not to the index.html inside that folder) and, as a result, Sinatra showed me the "Sinatra doesn't know that ditty" message. To correct the situation, I added a route to the Sinatra app that appends the index.html file name to the requested route.