diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-11 09:12:22 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-11 09:12:22 +0000 |
commit | a0ecced15ba905a1e4fd2ef4480b0b7ecc723ba9 (patch) | |
tree | a5848786aa9915ae4087db607d676c3f056122ee /actionpack/lib/action_view | |
parent | 2be3c00863c126f6982d3909a6d792a4a9a25ea6 (diff) | |
download | rails-a0ecced15ba905a1e4fd2ef4480b0b7ecc723ba9.tar.gz rails-a0ecced15ba905a1e4fd2ef4480b0b7ecc723ba9.tar.bz2 rails-a0ecced15ba905a1e4fd2ef4480b0b7ecc723ba9.zip |
Fixed docs #1886
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/url_helper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index 2901d4f642..d154f7c00c 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -11,13 +11,15 @@ module ActionView # 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. + # Note that it'll set :only_path => true so you'll get /controller/action instead of the + # http://example.com/controller/action part (makes it harder to parse httpd log files) def url_for(options = {}, *parameters_for_method_reference) options = { :only_path => true }.update(options.symbolize_keys) if options.kind_of? Hash @controller.send(:url_for, options, *parameters_for_method_reference) end # Creates a link tag of the given +name+ 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 + # link:classes/ActionView/Helpers/UrlHelper.html#M000304. It's also possible to pass a string instead of an options hash to # get a link tag that just points without consideration. If nil is passed as a name, the link itself will become the name. # # The html_options has three special features. One for creating javascript confirm alerts where if you pass :confirm => 'Are you sure?', |