instance method
normalize!
Ruby on Rails 3.0.20
Since v2.2.3 Last seen in v3.2.22.5 PrivateSignature
normalize!(path)
No documentation comment.
Parameters
-
pathreq
Source
# File actionpack/lib/action_controller/caching/actions.rb, line 177
def normalize!(path)
path << 'index' if path[-1] == ?/
path << ".#{extension}" if extension and !path.ends_with?(extension)
URI.unescape(path)
end
Defined in actionpack/lib/action_controller/caching/actions.rb line 177
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Caching::Actions::ActionCachePath