From 6b4226918396304bdc480e7e2e373e787d925164 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 6 Mar 2005 17:35:52 +0000 Subject: Fixed link_to documentation references nonexistent URL #573 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@863 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/helpers/url_helper.rb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index 3f014d4822..137cfe58ab 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -5,7 +5,8 @@ module ActionView # synchronously, so link_to uses that same url as is generated by url_for, which again is the same url used for # redirection in redirect_to. module UrlHelper - # Returns the URL for the set of +options+ provided. See the valid options in link:classes/ActionController/Base.html#M000021 + # Returns the URL for the set of +options+ provided. This takes the same options + # as url_for. For a list, see the url_for documentation in link:classes/ActionController/Base.html#M000079. def url_for(options = {}, *parameters_for_method_reference) if Hash === options then options = { :only_path => true }.update(options.stringify_keys) end @controller.send(:url_for, options, *parameters_for_method_reference) @@ -32,10 +33,11 @@ module ActionView end end - # Creates a link tag on the image residing at the +src+ using an URL created by the set of +options+. See the valid options in - # link:classes/ActionController/Base.html#M000021. It's also possible to pass a string instead of an options hash to - # get a link tag that just points without consideration. The html_options works jointly for the image and ahref tag by - # letting the following special values enter the options on the image and the rest goes to the ahref: + # Creates a link tag on the image residing at the +src+ using an URL created by the set of +options+. This takes the same options + # as url_for. For a list, see the url_for documentation in link:classes/ActionController/Base.html#M000079. + # It's also possible to pass a string instead of an options hash to get a link tag that just points without consideration. + # The html_options works jointly for the image and ahref tag by letting the following special values enter the options on + # the image and the rest goes to the ahref: # # * :alt - If no alt text is given, the file name part of the +src+ is used (capitalized and without the extension) # * :size - Supplied as "XxY", so "30x45" becomes width="30" and height="45" @@ -157,4 +159,4 @@ module ActionView end end end -end +end \ No newline at end of file -- cgit v1.2.3