diff options
Diffstat (limited to 'registration.rb')
-rw-r--r-- | registration.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/registration.rb b/registration.rb index e8ddd6f..2888387 100644 --- a/registration.rb +++ b/registration.rb @@ -24,15 +24,13 @@ class RegistrationApp < Sinatra::Base post '/submit' do if request.form_data? - #p request['band'] @band = Band.new(request['band']) if @band.valid? generate_pdf_for @band send_registration_emails_for @band erb :submitted else - session['errors'] = @band.errors - redirect to('/') + erb :index end end end |