instance method
page_cache_file
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v3.2.22.5 PrivateSignature
page_cache_file(path)
No documentation comment.
Parameters
-
pathreq
Source
# File actionpack/lib/action_controller/caching/pages.rb, line 99
def page_cache_file(path)
name = (path.empty? || path == "/") ? "/index" : URI.unescape(path.chomp('/'))
name << page_cache_extension unless (name.split('/').last || name).include? '.'
return name
end
Defined in actionpack/lib/action_controller/caching/pages.rb line 99
· View on GitHub
· Improve this page
· Find usages on GitHub