aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/url_helper.rb
diff options
context:
space:
mode:
authorAnton Davydov <antondavydov.o@gmail.com>2015-04-03 16:37:02 +0300
committerAnton Davydov <antondavydov.o@gmail.com>2015-04-04 00:18:40 +0300
commitdd2be69ce747a114a66b571c7a1c045cd36c4fdc (patch)
treeaa3cb5caaa4b93c405bd514eb4cec0e15d06bc1d /actionview/lib/action_view/helpers/url_helper.rb
parenta05f3e5f96f7a8aa55483d91becdbe49b81833fd (diff)
downloadrails-dd2be69ce747a114a66b571c7a1c045cd36c4fdc.tar.gz
rails-dd2be69ce747a114a66b571c7a1c045cd36c4fdc.tar.bz2
rails-dd2be69ce747a114a66b571c7a1c045cd36c4fdc.zip
[skip ci] Update information about #link_to attributes
Diffstat (limited to 'actionview/lib/action_view/helpers/url_helper.rb')
-rw-r--r--actionview/lib/action_view/helpers/url_helper.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/actionview/lib/action_view/helpers/url_helper.rb b/actionview/lib/action_view/helpers/url_helper.rb
index 49da5eba5d..8843a89362 100644
--- a/actionview/lib/action_view/helpers/url_helper.rb
+++ b/actionview/lib/action_view/helpers/url_helper.rb
@@ -173,11 +173,10 @@ module ActionView
# link_to "Visit Other Site", "http://www.rubyonrails.org/", data: { confirm: "Are you sure?" }
# # => <a href="http://www.rubyonrails.org/" data-confirm="Are you sure?">Visit Other Site</a>
#
- # Also you can set target attribute with <tt>target</tt> options:
- #
- # link_to "External link", "http://www.rubyonrails.org/", target: "_blank"
- # # => <a href="http://www.rubyonrails.org/" target="_blank">External link</a>
+ # Also you can set any link attributes such as <tt>target</tt>, <tt>rel</tt>, <tt>type</tt>:
#
+ # link_to "External link", "http://www.rubyonrails.org/", target: "_blank", rel: "nofollow"
+ # # => <a href="http://www.rubyonrails.org/" target="_blank" rel="nofollow">External link</a>
def link_to(name = nil, options = nil, html_options = nil, &block)
html_options, options, name = options, name, block if block_given?
options ||= {}