require 'sinatra/base' class RegistrationApp < Sinatra::Base get '/' do erb :index end run! if app_file == $0 end