From 66ffb4684d5d76c9c6ab2ab3e0c19365728df696 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Sat, 6 Nov 2021 04:10:49 +0100 Subject: [PATCH] [ci skip] nope the called method is on the routes module --- actionpack/lib/action_controller/metal/redirecting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_controller/metal/redirecting.rb b/actionpack/lib/action_controller/metal/redirecting.rb index 227599d71c..e98180ea40 100644 --- a/actionpack/lib/action_controller/metal/redirecting.rb +++ b/actionpack/lib/action_controller/metal/redirecting.rb @@ -164,7 +164,7 @@ module ActionController # # If request.host is on https://example.com or https://app.example.com, you'd get: # url_from("https://dev.example.com/profile") # => nil # - # NOTE: there's a similarity with {url_for}[rdoc-ref:ActionView::RoutingUrlFor#url_for], which generates an internal URL from various options from within the app, e.g. url_for(@post). + # NOTE: there's a similarity with {url_for}[rdoc-ref:ActionDispatch::Routing::UrlFor#url_for], which generates an internal URL from various options from within the app, e.g. url_for(@post). # However, #url_from is meant to take an external parameter to verify as in url_from(params[:redirect_url]). def url_from(location) location = location.presence