From a80c836626cfc4dc0a24ef3cc05be4ad3f9f057d Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 23 Mar 2011 15:01:44 -0400 Subject: [PATCH] set root --- lib/avm_example.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/avm_example.rb b/lib/avm_example.rb index 2f2c8a3..0a56555 100644 --- a/lib/avm_example.rb +++ b/lib/avm_example.rb @@ -10,7 +10,9 @@ class AVMExample < Sinatra::Base :path => '/', :expire_after => 60 - set :root, File.dirname(__FILE__) + configure do + set :root, File.dirname(__FILE__) + end register Sinatra::Flash helpers Sinatra::ContentFor