error.rb 374 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
# frozen_string_literal: true

# Invite code handling
class SignupSite < Sinatra::Base
  get '/error' do
    @header                     = 'Oh no!'
    @body                       = session[:error_message]
    @form                       = erb :error
    @progress                   = session[:error_progress]
    session[:error_reload_form] = true
    erb :index
  end
end