mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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.
This commit is contained in:
parent
7fe1f0f4ea
commit
3189961f76
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue