instance method page_cache_file

Ruby on Rails 3.0.20

Since v2.2.3 Last seen in v3.2.22.5 Private

Available in: v2.2.3 v2.3.18 v3.0.20 v3.1.12 v3.2.22.5

Signature

page_cache_file(path, extension)

No documentation comment.

Parameters

path req
extension req
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

Defined in ActionController::Caching::Pages::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close