Do your Sinatra apps have access to the Rails models?
We have 2 large Rails projects and an API server using Goliath[1], one of the Rails projects and the goliath server use models with symlinks.
[1] Goliath: http://postrank-labs.github.com/goliath/
gem "my_models", path: "vendor/future_gems/my_models/"
Once you are able to break them out completely, just remove the path reference and use a gem server instead.
# In config.ru
# App, V0, and Resque::Server are each sinatra apps
run Rack::URLMap.new({
"/" => App.new,
"/v0" => V0.new,
"/resque" => Resque::Server.new,
})We recently upgraded to Rails 2.3 which is built on Rack. `ActionController::Dispatcher.new` is the last Rack app on the stack now.