instance method
url_target
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
url_target(name, options)
No documentation comment.
Parameters
-
namereq -
optionsreq
Source
# File actionview/lib/action_view/helpers/navigation_helper.rb, line 537
def url_target(name, options)
if name.respond_to?(:model_name) && options.is_a?(Hash) && options.empty?
url_for(name)
else
url_for(options)
end
end
Defined in actionview/lib/action_view/helpers/navigation_helper.rb line 537
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::NavigationHelper