I am using RackDAV, and it's GREAT! http://github.com/georgi/rack_dav
However, the only way I can get it integrated into my Rails app is to modify my server startup file, which I copied from /vendor/rails/railties/rails/commands/server file! Obviously not great. I have this working:
app = Rack::Builder.new {
use Rails::Rack::LogTailer unless options[:detach]
use Rails::Rack::Debugger if options[:debugger]
map map_path do
use Rails::Rack::Static
run inner_app
end
map "/webdav/" do
use Rack::ShowExceptions
use Rack::CommonLogger
use Rack::Reloader
use Rack::Lint
run RackDAV::Handler.new(:root => SOLR_CORES_FILESYSTEM)
end
}.to_app
I want to be able to specify the handler elsewhere, like in environment.rb, but can't figure out how to have the mapping aspect work. Anyone hooked RackDAV into Rails?