class method
self.add_anchor
Ruby on Rails 4.2.9
Since v4.2.9 PrivateSignature
self.add_anchor(path, anchor)
No documentation comment.
Parameters
-
pathreq -
anchorreq
Source
# File actionpack/lib/action_dispatch/http/url.rb, line 70
def add_anchor(path, anchor)
if anchor
path << "##{Journey::Router::Utils.escape_fragment(anchor.to_param)}"
end
end
Defined in actionpack/lib/action_dispatch/http/url.rb line 70
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::URL