http://code.tutsplus.com/tutorials/singing-with-sinatra-the-encore--net-19364