Skip to content

Instantly share code, notes, and snippets.

@ultrasaurus
Created February 16, 2011 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ultrasaurus/830171 to your computer and use it in GitHub Desktop.
Save ultrasaurus/830171 to your computer and use it in GitHub Desktop.
class TestMiddleware
def initialize(app)
@app = app
end
def call(env)
puts "------------------TestMiddleware--------------"
#puts env.to_yaml
@app.call(env)
end
end
RackRouteTestApp::Application.routes.draw do
root :to => TestMiddleware.new(NotesController.action(:index))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment