diff options
Diffstat (limited to 'registration.rb')
-rw-r--r-- | registration.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/registration.rb b/registration.rb index de9ec75..9fae54f 100644 --- a/registration.rb +++ b/registration.rb @@ -1,4 +1,5 @@ require 'sinatra/base' +require_relative 'lib/band' class RegistrationApp < Sinatra::Base @@ -6,5 +7,14 @@ class RegistrationApp < Sinatra::Base 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 |