class method
self.add_anchor
Ruby on Rails 8.0.4
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 92
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 92
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::URL