Taking a Sinatra App and Converiting it to rails