I have a project controller in my Rails application with:
caches_page :index
However, instead of the cached file generated in /public/projects/index.html, it is in /public/projects.html.
The web server (currently Mongrel) searches directories */for *.htmlfiles. Thus, the request is http://…/projectsrouted through Rails, and my index cache file is never served.
How can I say caches_page :indexto generate a file with /public/projects/index.htmlinstead?
source
share