Sinatra -> Rails