diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-06 15:55:54 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-06 15:55:54 -0200 |
commit | 01c86fbf84155095e258aa3ccfaad66374810ad1 (patch) | |
tree | e5d4ae6f0364baf72223eaddb79472a9b4f511d3 | |
parent | 8f6cfd9e9f919658ab2d15306b585b37a9c72351 (diff) | |
parent | 7fb6759a84d232efc64864d8755342596ef2f7d3 (diff) | |
download | rails-01c86fbf84155095e258aa3ccfaad66374810ad1.tar.gz rails-01c86fbf84155095e258aa3ccfaad66374810ad1.tar.bz2 rails-01c86fbf84155095e258aa3ccfaad66374810ad1.zip |
Merge pull request #18831 from colinrymer/patch-1
Indicate link_to creates an anchor element
-rw-r--r-- | actionview/lib/action_view/helpers/url_helper.rb | 4 |
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 |