Comment on Ruby Patterns from GitHub's CodebaseparentComments−tptacek14yRails 3.0 just does this; given a FooApp Sinatra object, yo can match "/foo" :to => FooApp.−michaelfairley14yAlso doable without rails: # 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, })
Comments
Rails 3.0 just does this; given a FooApp Sinatra object, yo can match "/foo" :to => FooApp.
Also doable without rails: