From dd2be69ce747a114a66b571c7a1c045cd36c4fdc Mon Sep 17 00:00:00 2001 From: Anton Davydov Date: Fri, 3 Apr 2015 16:37:02 +0300 Subject: [skip ci] Update information about #link_to attributes --- actionview/lib/action_view/helpers/url_helper.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'actionview/lib/action_view/helpers/url_helper.rb') 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?" } # # => Visit Other Site # - # Also you can set target attribute with target options: - # - # link_to "External link", "http://www.rubyonrails.org/", target: "_blank" - # # => External link + # Also you can set any link attributes such as target, rel, type: # + # link_to "External link", "http://www.rubyonrails.org/", target: "_blank", rel: "nofollow" + # # => External link def link_to(name = nil, options = nil, html_options = nil, &block) html_options, options, name = options, name, block if block_given? options ||= {} -- cgit v1.2.3