class method
self.add_anchor
Ruby on Rails 6.0.6
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 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