Rails caches_page :index in Wrong Location
- by Andy
I have a controller Projects in my Rails app with:
caches_page :index
However, instead of the cached file being generated at /public/projects/index.html it is located at /public/projects.html.
The web server (currently Mongrel) looks for */ directories before *.html files. So the http://…/projects request is routed through Rails and my index cache file is never served.
How can I tell caches_page :index to generate the file at /public/projects/index.html instead?