Caching File

Hi

I am trying to cache a whole page. Should be easy enough - the page I am
trying to cache is available here:

www.mydomain.com/hello/world

And so my caching command is:

cache_page nil, :controller => “hello”, :action => “world”

But this writes my response.body into:

myapp/public/hello/world.html

Where as it would be FAR more useful if this was written into:

myapp/public/hello/world/index.html

As then the web-server would be able to find it automatically. How can I
do this? Someone MUST have done this before?

Thanks
Jay

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs