aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorEarl J St Sauver <estsauver@gmail.com>2013-09-22 16:52:03 -0700
committerEarl J St Sauver <estsauver@gmail.com>2013-09-22 16:52:03 -0700
commit3189961f76bc35b95eb5bc64a01c7626e1077d11 (patch)
tree2cffc5b01ef2da6bd18386f54ec49382d79c3537 /actionpack
parent7fe1f0f4ea2c9e82b4b19ecb07a3c9f4dca96821 (diff)
downloadrails-3189961f76bc35b95eb5bc64a01c7626e1077d11.tar.gz
rails-3189961f76bc35b95eb5bc64a01c7626e1077d11.tar.bz2
rails-3189961f76bc35b95eb5bc64a01c7626e1077d11.zip
Fix link_to return value
The documentation is showing the link_to method as just returning the contents of the url_for method. It should be returning an "<a>" tag with the correct href set.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing/url_for.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/url_for.rb b/actionpack/lib/action_dispatch/routing/url_for.rb
index 8e19025722..bcebe532bf 100644
--- a/actionpack/lib/action_dispatch/routing/url_for.rb
+++ b/actionpack/lib/action_dispatch/routing/url_for.rb
@@ -20,7 +20,7 @@ module ActionDispatch
#
# <%= link_to('Click here', controller: 'users',
# action: 'new', message: 'Welcome!') %>
- # # => "/users/new?message=Welcome%21"
+ # # => <a href="/users/new?message=Welcome%21">Click here</a>
#
# link_to, and all other functions that require URL generation functionality,
# actually use ActionController::UrlFor under the hood. And in particular,