aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorColin Rymer <colin.rymer@gmail.com>2015-02-06 12:43:12 -0500
committerColin Rymer <colin.rymer@gmail.com>2015-02-06 12:46:38 -0500
commit7fb6759a84d232efc64864d8755342596ef2f7d3 (patch)
tree0cb9696ae2bee492d963cb67e95378c9d1f66852 /actionview
parent9c47b874d112414df7f80f9ed852adb48ba6d268 (diff)
downloadrails-7fb6759a84d232efc64864d8755342596ef2f7d3.tar.gz
rails-7fb6759a84d232efc64864d8755342596ef2f7d3.tar.bz2
rails-7fb6759a84d232efc64864d8755342596ef2f7d3.zip
Indicate link_to creates an anchor element
The `link_to` helper generates an HTML anchor element (consisting of opening and closing anchor tags and an element body). The docs currently state the a link tag is generated (which would indicate a tag like `<link>`, which is another valid HTML tag), so this change clarifies that an anchor element is actually generated. [ci skip]
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/url_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/url_helper.rb b/actionview/lib/action_view/helpers/url_helper.rb
index 8c2d5705f1..33882063f9 100644
--- a/actionview/lib/action_view/helpers/url_helper.rb
+++ b/actionview/lib/action_view/helpers/url_helper.rb
@@ -46,9 +46,9 @@ module ActionView
end
protected :_back_url
- # Creates a link tag of the given +name+ using a URL created by the set of +options+.
+ # Creates an anchor element of the given +name+ using a URL created by the set of +options+.
# See the valid options in the documentation for +url_for+. It's also possible to
- # pass a String instead of an options hash, which generates a link tag that uses the
+ # pass a String instead of an options hash, which generates an anchor element that uses the
# value of the String as the href for the link. Using a <tt>:back</tt> Symbol instead
# of an options hash will generate a link to the referrer (a JavaScript back link
# will be used in place of a referrer if none exists). If +nil+ is passed as the name