Я решил проблему с этим хаком
module PageCachingHack
class << self
def included(base)
base.alias_method_chain :page_cache_file, :trailing_slash
end
end
private
def page_cache_file_with_trailing_slash(path)
name = page_cache_file_without_trailing_slash(path)
name.gsub!('.html', '/index.html') unless name =~ /index\.html/
return name
end
end
ActionController::Caching::Pages::ClassMethods.send(:include, PageCachingHack)