summaryrefslogtreecommitdiffstats
path: root/registration.rb
diff options
context:
space:
mode:
Diffstat (limited to 'registration.rb')
-rw-r--r--registration.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/registration.rb b/registration.rb
index fe0ce40..2801a64 100644
--- a/registration.rb
+++ b/registration.rb
@@ -21,9 +21,9 @@ class RegistrationApp < Sinatra::Base
if request.form_data?
@band = Band.new(request['band'])
if @band.valid?
- pdf_file = File.join("uploads", create_pdf_file_name(@band))
+ pdf_file = File.join("/uploads", create_pdf_file_name(@band))
generate_pdf_for(@band, File.join(settings.public_folder, pdf_file))
- send_registration_emails_for(@band, url_for(pdf_file))
+ send_registration_emails_for(@band, url_for(pdf_file, :full))
erb :submitted
else
erb :index