Skip to content

Instantly share code, notes, and snippets.

@brianburridge
Created May 23, 2011 18:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianburridge/987287 to your computer and use it in GitHub Desktop.
Save brianburridge/987287 to your computer and use it in GitHub Desktop.
Rack mounting with Rails app
require "config/environment"
require 'api'
rails_app = Rack::Builder.new do
use Rails::Rack::LogTailer
use Rails::Rack::Static
run ActionController::Dispatcher.new
end
run Rack::Cascade.new([
TourWrist::API,
rails_app
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment