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