add ruby code to index.html