summaryrefslogblamecommitdiffstats
path: root/registration.rb
blob: 9fae54f0577316def339be0adca6f9258ee1a56e (plain) (tree)
1
2
3
4
5
6
7
8
9
                      
                           






                                     








                                       

                        
require 'sinatra/base'
require_relative 'lib/band'

class RegistrationApp < Sinatra::Base

  get '/' do
    erb :index
  end

  post '/submit' do
    if request.form_data?
      #p request['band']
      @band = Band.new(request['band'])

      erb :submitted
    end
  end

  run! if app_file == $0
end