views:

20

answers:

0

Hi,

I wrote a Rack Middleware which analyse response to find esi:include tags, clone the rack env, set a new PATH_INFO and REQUEST_URI (according to tag's src attribute) then @app.call with the new env.

It proceed well, but Rails (2.3.9) doesn't seem to recognize the completely the route (request_uri: "/esi/audience"), as it fallback to :controller => :esi, :action => :index (should be :action => :audience !).

My route is:

map.esi "/esi/:action", :controller => 'esi'

I'll be very glad if you have some hits for this problem.

Thank you.