sinatra -> rails