From db4ff3d23e5bcbc88b956f42a35ee5ef98b382bf Mon Sep 17 00:00:00 2001 From: Stian HĂ„klev Date: Sun, 3 Feb 2013 00:37:15 -0500 Subject: Changing :public to :public_folder to avoid Sinatra error. --- file_upload.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file_upload.rb b/file_upload.rb index b8b08b6..671abcb 100644 --- a/file_upload.rb +++ b/file_upload.rb @@ -10,8 +10,8 @@ class FileUpload < Sinatra::Base enable :sessions set :views, File.join(File.dirname(__FILE__), 'views') - set :public, File.join(File.dirname(__FILE__), 'public') - set :files, File.join(settings.public, 'files') + set :public_folder, File.join(File.dirname(__FILE__), 'public') + set :files, File.join(settings.public_folder, 'files') end helpers do -- cgit v1.2.3