diff options
author | Earl J St Sauver <estsauver@gmail.com> | 2013-09-22 16:52:03 -0700 |
---|---|---|
committer | Earl J St Sauver <estsauver@gmail.com> | 2013-09-22 16:52:03 -0700 |
commit | 3189961f76bc35b95eb5bc64a01c7626e1077d11 (patch) | |
tree | 2cffc5b01ef2da6bd18386f54ec49382d79c3537 /actionpack/lib | |
parent | 7fe1f0f4ea2c9e82b4b19ecb07a3c9f4dca96821 (diff) | |
download | rails-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/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/url_for.rb | 2 |
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, |