Generally, ESI isn't used in Rails since the inclusion of Russian Doll caching which is generally more effective (at least I haven't seen it much, maybe it is). You can use ESI using the middleware you've already found, but I believe you have to establish your own gateway-cache using Mongrel-ESI or Varnish. I'm not positive on this, but you would have to research it.
Personally, I would look at Russion Doll caching. Also, if your application does a lot of authentication/authorization, I would look at low level caching as caching the user table can really speed things up in applications that are authentication/authorization intensive.
@mike2r