change file stuff to ruby and add .erb