diff options
author | Stian Håklev <shaklev@gmail.com> | 2013-02-03 00:37:15 -0500 |
---|---|---|
committer | Stian Håklev <shaklev@gmail.com> | 2013-02-03 00:37:15 -0500 |
commit | db4ff3d23e5bcbc88b956f42a35ee5ef98b382bf (patch) | |
tree | 315f095f5cc5d8f4bb2a27d9f8c652a9a0cde07d | |
parent | 8b29a99af7911530e0f7f251a9eefca5aed6b773 (diff) |
Changing :public to :public_folder to avoid Sinatra error.
-rw-r--r-- | file_upload.rb | 4 |
1 files 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 |