class method
self.add_anchor
Ruby on Rails 5.1.7
Since v4.2.11.3 Private — implementation detail, not part of the public APISignature
self.add_anchor(path, anchor)
No documentation comment.
Parameters
-
pathreq -
anchorreq
Source
# File actionpack/lib/action_dispatch/http/url.rb, line 88
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 88
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::URL