Since Rails is fully compliant with Rack I was wandering how I would set up a rackup file so that a Rails application is just a piece of middleware and then a request could hit another app further down the middleware stack.
What I really want is to use a Rails app to handle authentication and authorization for smaller rack-apps later on in the middleware stack, is this possible with Rails 3?