mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[ci skip] nope the called method is on the routes module
This commit is contained in:
parent
32e2ac5fd4
commit
66ffb4684d
1 changed files with 1 additions and 1 deletions
|
@ -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. <tt>url_for(@post)</tt>.
|
||||
# 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. <tt>url_for(@post)</tt>.
|
||||
# However, #url_from is meant to take an external parameter to verify as in <tt>url_from(params[:redirect_url])</tt>.
|
||||
def url_from(location)
|
||||
location = location.presence
|
||||
|
|
Loading…
Reference in a new issue